/* login.css — sign-in page (split layout, teal brand) */



/* ── Page shell ─────────────────────────────────────── */

body[data-page="login"] {

  margin: 0;

  min-height: 100vh;

  display: flex;

  flex-direction: column;

  font-family: 'Sora', sans-serif;

  background:

    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(0, 198, 198, 0.12) 0%, transparent 65%),

    radial-gradient(ellipse 50% 60% at 5% 90%, rgba(0, 128, 128, 0.1) 0%, transparent 60%),

    var(--bg, #f4fafa);

  color: var(--text-primary);

}



body[data-page="login"] ::-webkit-scrollbar {

  width: 6px;

}

body[data-page="login"] ::-webkit-scrollbar-track {

  background: var(--teal-light, #e0f7f7);

}

body[data-page="login"] ::-webkit-scrollbar-thumb {

  background: var(--teal, #008080);

  border-radius: 3px;

}



/* ── Header ────────────────────────────────────────── */

.auth-header {

  width: 100%;

  background: rgba(0, 128, 128, 0.97);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  padding: 0 clamp(20px, 4vw, 56px);

  min-height: 96px;

  height: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  position: sticky;

  top: 0;

  z-index: 50;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  box-shadow: 0 2px 24px rgba(0, 64, 64, 0.18);

}



.logo-link {

  display: flex;

  align-items: center;

  gap: 0.875rem;

  text-decoration: none;

  min-width: 0;

  flex: 0 1 auto;

  max-width: min(460px, 50vw);

}



.logo-mark {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 68px;

  height: 68px;

  border-radius: 50%;

  overflow: hidden;

  background: #ffffff;

  flex-shrink: 0;

  box-shadow: 0 2px 8px rgba(0, 40, 40, 0.18);

  border: 2px solid rgba(255, 255, 255, 0.95);

}



.logo-img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  display: block;

}



.logo-text {

  display: flex;

  flex-direction: column;

  line-height: 1.2;

  min-width: 0;

}



.brand-main {

  font-family: 'DM Serif Display', serif;

  font-size: 1.05rem;

  color: #ffffff;

}



.brand-sub {

  font-size: 0.62rem;

  font-weight: 300;

  color: rgba(255, 255, 255, 0.78);

  letter-spacing: 0.01em;

}



.btn-cta-header {

  background: rgba(255, 255, 255, 0.14);

  color: #fff;

  padding: 0.5rem 1rem;

  font-size: 0.8125rem;

  border-radius: 100px;

  text-decoration: none;

  font-weight: 600;

  transition: background 0.2s, border-color 0.2s, transform 0.15s;

  display: inline-flex;

  align-items: center;

  gap: 0.35rem;

  white-space: nowrap;

  border: 1px solid rgba(255, 255, 255, 0.28);

  cursor: pointer;

}



.btn-cta-header .material-icons {

  font-size: 1rem;

}



.btn-cta-header:hover {

  background: rgba(255, 255, 255, 0.24);

  transform: translateX(-2px);

}



/* ── Main layout ───────────────────────────────────── */

.auth-main {

  flex-grow: 1;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);

}



.auth-layout {

  width: 100%;

  max-width: 1080px;

  display: grid;

  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);

  gap: clamp(2rem, 5vw, 4rem);

  align-items: center;

}



/* ── Left showcase panel ───────────────────────────── */

.auth-showcase {

  position: relative;

  padding: clamp(1.5rem, 3vw, 2.5rem) 0;

  animation: authFadeUp 0.6s ease both;

}



.auth-showcase__inner {

  max-width: 480px;

}



.auth-showcase__kicker {

  margin: 0 0 0.875rem;

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  color: var(--teal-dark, #006666);

}



.auth-showcase__title {

  font-family: 'DM Serif Display', serif;

  font-size: clamp(1.85rem, 3.2vw, 2.5rem);

  line-height: 1.18;

  letter-spacing: -0.02em;

  color: var(--text-primary, #002b2b);

  margin: 0 0 1rem;

}



.auth-showcase__lead {

  font-size: 1rem;

  color: var(--text-muted, #6b9999);

  line-height: 1.7;

  margin: 0 0 2rem;

  max-width: 420px;

}



.auth-features {

  list-style: none;

  margin: 0 0 2rem;

  padding: 0;

  display: flex;

  flex-direction: column;

  gap: 1rem;

}



.auth-feature {

  display: flex;

  align-items: flex-start;

  gap: 0.875rem;

  padding: 0.875rem 1rem;

  background: rgba(255, 255, 255, 0.72);

  border: 1px solid var(--border, #cde8e8);

  border-radius: 14px;

  backdrop-filter: blur(8px);

  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;

}



.auth-feature:hover {

  border-color: rgba(0, 128, 128, 0.35);

  box-shadow: 0 4px 20px rgba(0, 128, 128, 0.08);

  transform: translateY(-1px);

}



.auth-feature__icon {

  flex-shrink: 0;

  width: 2.5rem;

  height: 2.5rem;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 10px;

  background: linear-gradient(135deg, var(--teal-light, #e0f7f7), rgba(255, 255, 255, 0.9));

  color: var(--teal, #008080);

}



.auth-feature__icon .material-icons {

  font-size: 1.25rem;

}



.auth-feature div {

  display: flex;

  flex-direction: column;

  gap: 0.15rem;

  min-width: 0;

}



.auth-feature strong {

  font-size: 0.9rem;

  font-weight: 600;

  color: var(--text-primary, #002b2b);

}



.auth-feature span {

  font-size: 0.8125rem;

  color: var(--text-muted, #6b9999);

  line-height: 1.45;

}



.auth-showcase__badge {

  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  padding: 0.5rem 1rem;

  font-size: 0.78rem;

  font-weight: 600;

  color: var(--teal-dark, #006666);

  background: rgba(224, 247, 247, 0.8);

  border: 1px solid var(--border, #cde8e8);

  border-radius: 100px;

}



.auth-showcase__badge .material-icons {

  font-size: 1rem;

  color: var(--teal, #008080);

}



/* ── Auth card ─────────────────────────────────────── */

.auth-card-wrap {

  width: 100%;

  animation: authFadeUp 0.6s 0.1s ease both;

}



body[data-page="login"] .auth-widget {

  border-radius: 20px;

  border: 1px solid rgba(0, 128, 128, 0.12);

  box-shadow:

    0 4px 6px rgba(0, 64, 64, 0.04),

    0 20px 48px rgba(0, 128, 128, 0.1);

  background: rgba(255, 255, 255, 0.97);

  backdrop-filter: blur(12px);

}



.auth-widget__header {

  padding: 1.75rem 1.75rem 0;

  text-align: center;

}



.auth-widget__title {

  font-family: 'DM Serif Display', serif;

  font-size: 1.65rem;

  font-weight: 400;

  color: var(--text-primary, #002b2b);

  margin: 0 0 0.35rem;

  letter-spacing: -0.01em;

}



.auth-widget__subtitle {

  font-size: 0.875rem;

  color: var(--text-muted, #6b9999);

  margin: 0;

  line-height: 1.5;

}



/* ── Tabs (pill segmented control) ─────────────────── */

.tab-row {

  display: flex;

  margin: 1.5rem 1.75rem 0;

  padding: 0.3rem;

  background: var(--teal-light, #e0f7f7);

  border-radius: 12px;

  border: 1px solid var(--border, #cde8e8);

  gap: 0.25rem;

}



.tab-btn {

  flex: 1;

  padding: 0.625rem 1rem;

  background: transparent;

  border: none;

  border-radius: 9px;

  font-family: inherit;

  font-size: 0.875rem;

  font-weight: 600;

  color: var(--text-muted, #6b9999);

  cursor: pointer;

  transition: color 0.2s, background 0.2s, box-shadow 0.2s;

}



.tab-btn:hover:not(.active) {

  color: var(--text-primary, #002b2b);

}



.tab-btn.active {

  color: var(--teal-dark, #006666);

  background: #fff;

  box-shadow: 0 2px 8px rgba(0, 128, 128, 0.12);

}



/* ── Panel body ────────────────────────────────────── */

.panel-body {

  padding: 1.5rem 1.75rem 1.75rem;

}



.auth-form {

  display: flex;

  flex-direction: column;

  gap: 1.125rem;

}



.auth-oauth {

  display: flex;

  flex-direction: column;

  gap: 1rem;

  margin-top: 1.125rem;

}



.field-group {

  display: flex;

  flex-direction: column;

  gap: 0.4rem;

}



.field-label {

  font-size: 0.8125rem;

  font-weight: 600;

  color: var(--text-mid, #1a4d4d);

  letter-spacing: 0.01em;

}



body[data-page="login"] .input {

  padding: 0.7rem 0.875rem;

  border-radius: 10px;

  font-size: 0.9375rem;

  background: #fff;

  border-color: var(--border, #cde8e8);

}



body[data-page="login"] .input:focus {

  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.14);

}



body[data-page="login"] .password-toggle .material-icons {

  font-size: 1.15rem;

}



/* ── Form row (terms + forgot) ─────────────────────── */

.form-row-between {

  display: flex;

  flex-wrap: wrap;

  align-items: flex-start;

  justify-content: space-between;

  gap: 0.5rem 1rem;

  margin: -0.25rem 0 0;

}



.forgot-link {

  font-size: 0.8125rem;

  color: var(--teal-dark, #006666);

  text-decoration: none;

  font-weight: 600;

  white-space: nowrap;

  flex-shrink: 0;

}



.forgot-link:hover {

  text-decoration: underline;

}



.form-message {

  margin-top: 0.875rem;

  font-size: 0.875rem;

  text-align: center;

  min-height: 1.25rem;

  padding: 0.5rem 0.75rem;

  border-radius: 8px;

}



.form-message.msg-error {

  background: rgba(198, 40, 40, 0.06);

  border: 1px solid rgba(198, 40, 40, 0.15);

}



.form-message.msg-success {

  background: rgba(46, 125, 50, 0.06);

  border: 1px solid rgba(46, 125, 50, 0.15);

}



/* ── Terms text ────────────────────────────────────── */

.terms-text {

  font-size: 0.75rem;

  color: var(--text-muted, #6b9999);

  line-height: 1.5;

  margin: 0;

  flex: 1;

  min-width: 0;

}



.terms-text a {

  color: var(--teal-dark, #006666);

  text-decoration: none;

  font-weight: 500;

}



.terms-text a:hover {

  text-decoration: underline;

}



/* ── Buttons (page-specific polish) ────────────────── */

body[data-page="login"] .btn-primary {

  border-radius: 10px;

  padding: 0.75rem 1.25rem;

  font-size: 0.9375rem;

  letter-spacing: 0.01em;

}



body[data-page="login"] .btn-primary .material-icons {

  font-size: 1.15rem;

}



body[data-page="login"] .btn-secondary.btn-google {

  border-radius: 10px;

  padding: 0.7rem 1.25rem;

  border-color: var(--border, #cde8e8);

  background: #fff;

  font-weight: 600;

  color: var(--text-mid, #1a4d4d);

}



body[data-page="login"] .btn-secondary.btn-google:hover:not(:disabled) {

  background: var(--teal-light, #e0f7f7);

  border-color: rgba(0, 128, 128, 0.3);

}



body[data-page="login"] .divider {

  margin: 0.125rem 0;

  font-size: 0.75rem;

  text-transform: uppercase;

  letter-spacing: 0.06em;

}



body[data-page="login"] .divider::before,

body[data-page="login"] .divider::after {

  background: var(--border, #cde8e8);

}



/* ── Disclaimer box ────────────────────────────────── */

.disclaimer-box {

  display: flex;

  align-items: flex-start;

  gap: 0.625rem;

  background: linear-gradient(135deg, rgba(224, 247, 247, 0.9), rgba(255, 255, 255, 0.6));

  border: 1px solid var(--border, #cde8e8);

  border-radius: 10px;

  padding: 0.75rem 0.875rem;

  font-size: 0.8rem;

  color: var(--text-mid, #1a4d4d);

  line-height: 1.5;

}



.disclaimer-box p {

  margin: 0;

}



.disclaimer-box__icon {

  flex-shrink: 0;

  font-size: 1.1rem !important;

  color: var(--teal, #008080);

  margin-top: 0.1rem;

}



/* ── Existing session banner ───────────────────────── */

.existing-session-banner {

  margin-bottom: 1rem;

  padding: 0.875rem 1rem;

  border-radius: 10px;

  background: linear-gradient(135deg, rgba(224, 247, 247, 0.95), rgba(255, 255, 255, 0.8));

  border: 1px solid var(--border, #cde8e8);

  font-size: 0.9rem;

  color: var(--text-primary);

}



.existing-session-banner p {

  margin: 0 0 0.75rem;

}



.existing-session-actions {

  display: flex;

  gap: 0.5rem;

  flex-wrap: wrap;

}



.existing-session-actions .btn-sm {

  padding: 0.4rem 0.875rem;

  font-size: 0.85rem;

  width: auto;

}



/* ── Custom checkbox ───────────────────────────────── */

.checkbox-label {

  display: flex;

  align-items: flex-start;

  gap: 0.625rem;

  cursor: pointer;

  font-size: 0.8125rem;

  color: var(--text-mid, #1a4d4d);

  line-height: 1.5;

  user-select: none;

}



.checkbox-label a {

  color: var(--teal-dark, #006666);

  text-decoration: none;

  font-weight: 500;

}



.checkbox-label a:hover {

  text-decoration: underline;

}



.custom-checkbox {

  flex-shrink: 0;

  width: 1.125rem;

  height: 1.125rem;

  border: 2px solid var(--border, #cde8e8);

  border-radius: 5px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #fff;

  transition: background 0.15s, border-color 0.15s;

  margin-top: 0.1rem;

}



.custom-checkbox .material-icons {

  font-size: 0.8125rem;

  color: #fff;

  opacity: 0;

  transition: opacity 0.15s;

}



.custom-checkbox.checked {

  background: var(--accent-primary);

  border-color: var(--accent-primary);

}



.custom-checkbox.checked .material-icons {

  opacity: 1;

}



/* ── Footer ────────────────────────────────────────── */

.auth-footer {

  padding: 1.25rem 1rem;

  border-top: 1px solid var(--border, #cde8e8);

  text-align: center;

  font-size: 0.8125rem;

  color: var(--text-light, #6b9999);

  background: rgba(255, 255, 255, 0.55);

  backdrop-filter: blur(8px);

}



.auth-footer p {

  margin: 0;

}



.auth-footer__links {

  margin-top: 0.25rem !important;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 0.5rem;

}



.auth-footer a {

  color: var(--teal-dark, #006666);

  text-decoration: none;

  font-weight: 500;

}



.auth-footer a:hover {

  text-decoration: underline;

}



/* ── Animations ────────────────────────────────────── */

@keyframes authFadeUp {

  from {

    opacity: 0;

    transform: translateY(16px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}



/* ── Responsive ────────────────────────────────────── */

@media (max-width: 900px) {

  .auth-layout {

    grid-template-columns: 1fr;

    max-width: 26rem;

    gap: 0;

  }



  .auth-showcase {

    display: none;

  }

}



@media (max-width: 480px) {

  .auth-header {

    padding: 0 1rem;

    min-height: 64px;

    height: auto;

  }



  .logo-mark {

    width: 44px;

    height: 44px;

  }



  .brand-main {

    font-size: 0.95rem;

  }



  .brand-sub {

    display: none;

  }



  .btn-cta-header span:not(.material-icons) {

    display: none;

  }



  .btn-cta-header {

    padding: 0.5rem 0.75rem;

  }



  .auth-main {

    padding: 1.5rem 1rem 2rem;

  }



  .auth-widget__header {

    padding: 1.5rem 1.25rem 0;

  }



  .tab-row {

    margin: 1.25rem 1.25rem 0;

  }



  .panel-body {

    padding: 1.25rem;

  }



  .auth-widget__title {

    font-size: 1.45rem;

  }



  .form-row-between {

    flex-direction: column;

    align-items: stretch;

  }



  .forgot-link {

    text-align: right;

  }

}

