/* =========================================================================
   MODERN LOGIN — Light Modern SaaS
   ========================================================================= */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Poppins-Regular.ttf');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/Poppins-Medium.ttf');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/Poppins-SemiBold.ttf');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/Poppins-Bold.ttf');
}

* { box-sizing: border-box; }

img {
  max-width: 100%;
  height: auto;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Source Sans Pro', sans-serif;
  color: #27334c;
  overflow-x: hidden;
  background: linear-gradient(135deg, #eef0ff 0%, #f4f6fb 55%, #eaf4ff 100%);
}

/* Full-height layout */
.nologin-wrap {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* Left brand panel */
.login-brand {
  flex: 1 1 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(150deg, #4f5cf0 0%, #5b6cff 38%, #8b5cf6 100%);
  position: relative;
  overflow: hidden;
}
.login-brand::before,
.login-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.login-brand::before {
  width: 420px; height: 420px; top: -140px; right: -120px;
}
.login-brand::after {
  width: 380px; height: 380px; bottom: -160px; left: -110px;
}
.login-brand-inner { position: relative; z-index: 1; max-width: 380px; }

.login-logo img {
  max-height: 110px;
  max-width: 100%;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  padding: 10px 14px;
  display: inline-block;
}

.merk {
  margin: 22px 0 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .3px;
}
.merk span { color: #ffffff; }
.school {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.85);
  margin: 0 0 26px;
}
.login-tag { color: rgba(255,255,255,.92); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* Right card panel */
.login-panel {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(23, 41, 79, .18);
  padding: 42px 40px 36px;
}

.login-brand-mini {
  display: none;
  text-align: center;
  margin-bottom: 18px;
}
.login-brand-mini img { max-height: 64px; border-radius: 12px; background: #fff; }

.title-login {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #27334c;
}
.login-sub {
  font-size: 13px;
  color: #6b7a99;
  margin: 0 0 26px;
}

.form-group { margin-bottom: 20px; }
.login-card label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b7a99;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.login-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #27334c;
  background: #f6f8fd;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
  outline: none;
  -webkit-transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.login-input:focus {
  background: #ffffff;
  border-color: #5b6cff;
  box-shadow: 0 0 0 4px rgba(91,108,255,.14);
}

.btn-login {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b6cff 0%, #8b5cf6 100%);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(91,108,255,.35);
  -webkit-transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  margin-top: 6px;
}
.btn-login:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 28px rgba(91,108,255,.42); }
.btn-login:active { transform: translateY(0); }

.login-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-alert i { font-size: 14px; }

/* Pilih Peran */
.btn-login-role {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #e2e8f4;
  border-radius: 14px;
  background: #ffffff;
  color: #27334c;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.btn-login-role:hover {
  border-color: #5b6cff;
  background: #f6f8ff;
  box-shadow: 0 8px 20px rgba(91,108,255,.16);
  transform: translateY(-1px);
}
.btn-login-role:active { transform: translateY(0); }
.btn-login-role i {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #5b6cff 0%, #8b5cf6 100%);
  border-radius: 12px;
}
.btn-login-role .role-name { line-height: 1.4; }

.flat { border-radius: 12px; }

/* ---------- Tablet & Mobile ---------- */
@media (max-width: 900px) {
  .nologin-wrap { flex-wrap: wrap; }
  .login-brand { display: none; }
  .login-panel { flex-basis: 100%; width: 100%; min-width: 0; padding: 28px 16px; }
  .login-brand-mini { display: block; }
  .login-brand-mini img { display: inline-block; max-width: 180px; max-height: 60px; }
  .login-card { width: 100%; max-width: 440px; padding: 34px 28px; border-radius: 18px; box-shadow: 0 18px 44px rgba(23, 41, 79, .16); }
}

@media (max-width: 480px) {
  body { background: #f4f6fb; }
  .nologin-wrap { align-items: stretch; }
  .login-panel { padding: 20px 14px; align-items: center; }
  .login-card { padding: 26px 18px 30px; }
  .title-login { font-size: 21px; }
  .login-sub { margin-bottom: 20px; }
  .login-input { height: 46px; font-size: 16px; padding: 11px 14px; }
  .btn-login { height: 48px; }
}

/* Layar pendek / landscape HP */
@media (max-height: 560px) {
  .nologin-wrap { min-height: 100vh; }
  .login-panel { padding: 16px 14px; }
  .login-brand-mini { margin-bottom: 10px; }
  .login-brand-mini img { max-height: 48px; }
  .login-sub { margin-bottom: 14px; }
  .form-group { margin-bottom: 14px; }
}