/* ============================================================
   SduFlow — index.css  (Login Page)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #1b2d5e;
  --navy-dark:   #111e42;
  --navy-mid:    #2a3f7e;
  --accent:      #4f6ef7;
  --accent-soft: #eef1fe;
  --accent-hover:#3a58e8;
  --gold:        #c8a455;
  --text-main:   #1a1f36;
  --text-muted:  #7b82a0;
  --text-light:  #a8aec8;
  --border:      #e4e7f2;
  --bg-page:     #f4f6fc;
  --white:       #ffffff;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-card: 0 20px 60px rgba(27, 45, 94, 0.10), 0 4px 16px rgba(27, 45, 94, 0.06);
  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ---------- Background Blobs ---------- */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-blob--top {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.13) 0%, transparent 70%);
}

.bg-blob--bottom {
  width: 480px;
  height: 480px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(27, 45, 94, 0.10) 0%, transparent 70%);
}

/* ---------- Page Layout ---------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 580px;
  margin: 32px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Left Side Panel ---------- */
.side-panel {
  width: 340px;
  flex-shrink: 0;
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.side-panel::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.side-panel::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(79, 110, 247, 0.12);
}

.side-panel__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Brand */
.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
}

.side-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.side-brand__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

/* Side Content */
.side-content {
  flex: 1;
}

.side-heading {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 18px;
}

.side-heading em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.70);
}

.side-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
  margin-bottom: 32px;
}

.side-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

/* Side Footer */
.side-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.5px;
  margin-top: 32px;
}

/* ---------- Right Login Panel ---------- */
.login-panel {
  flex: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.card {
  width: 100%;
  max-width: 380px;
}

/* Mobile brand (hidden on desktop) */
.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.mobile-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mobile-brand__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

/* Card Header */
.card-header {
  margin-bottom: 28px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--navy-dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---------- Form Fields ---------- */
.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.field-label-row .field-label {
  margin-bottom: 0;
}

.forgot-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.forgot-link:hover {
  color: var(--accent-hover);
}

/* Input */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color var(--transition);
}

.input-field {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-main);
  background: var(--bg-page);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.input-field::placeholder {
  color: var(--text-light);
}

.input-field:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
}

.input-field:focus ~ .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--accent);
}

/* Eye button */
.eye-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color var(--transition);
}

.eye-btn:hover {
  color: var(--accent);
}

/* ---------- Remember Me ---------- */
.remember-row {
  margin-bottom: 22px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.checkbox-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ---------- Login Button ---------- */
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.30);
}

.btn-login:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(79, 110, 247, 0.40);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 400;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Google Button ---------- */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  background: var(--white);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-google:hover {
  border-color: #c8cde0;
  background: var(--bg-page);
  box-shadow: 0 2px 8px rgba(27, 45, 94, 0.07);
}

/* ---------- Sign Up Prompt ---------- */
.signup-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.signup-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.signup-link:hover {
  color: var(--accent-hover);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .page-wrapper {
    flex-direction: column;
    min-height: unset;
    margin: 16px;
  }

  .side-panel {
    width: 100%;
    padding: 28px 24px;
    min-height: unset;
  }

  .side-heading { font-size: 26px; }
  .side-desc { display: none; }
  .side-content { flex: unset; }
  .side-footer { display: none; }
  .side-brand { margin-bottom: 20px; }
  .side-pills { margin-bottom: 4px; }

  .login-panel {
    padding: 28px 24px 32px;
  }

  .mobile-brand {
    display: flex;
  }
}