/* ============================================================
   login.css — Login Page Styles
   Loaded only on login.html.
   Requires base.css to be loaded first (variables + utilities).
   ============================================================ */

/* ── MOBILE LOGO — hidden on desktop, shown on mobile ───────── */
#mobile-logo { display: none; }

/* ── MAIN CONTAINER ────────────────────────────────────────── */
#main-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
  }
  
  /* ── LEFT PANEL ─────────────────────────────────────────────── */
  #left-panel {
    width: 45%;
    background: linear-gradient(160deg, #ffffff 0%, #FAFAFF 50%, #F5F3FF 100%);
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #EEECFD;
  }
  
  /* Barely-visible radial circle — top right */
  #left-panel::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 70%);
    pointer-events: none;
  }
  
  /* Barely-visible radial circle — bottom left */
  #left-panel::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,110,250,0.06) 0%, transparent 70%);
    pointer-events: none;
  }
  
  /* ── LOGO ───────────────────────────────────────────────────── */
  #logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 52px;
    position: relative;
    z-index: 1;
  }
  
  #logo svg {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }
  
  #logo span {
    font-size: 36px;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: -0.04em;
  }
  
  /* Main headline */
  #left-panel h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
  }
  
  /* Subheading */
  #left-panel > p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
  }
  
  /* Feature bullets */
  #feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
  }
  
  #feature-list li {
    font-size: 13.5px;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
  }
  
  /* ── RIGHT PANEL ────────────────────────────────────────────── */
  #right-panel {
    width: 55%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    overflow-y: auto;
  }
  
  /* Inner form container — max width keeps form readable */
  #right-panel > * {
    width: 100%;
    max-width: 380px;
  }
  
  /* ── TAB SWITCHER ───────────────────────────────────────────── */
  #tab-switcher {
    display: flex;
    background: var(--bg-input);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
  }
  
  #tab-switcher button {
    flex: 1;
    padding: 9px 16px;
    border-radius: 7px;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
    color: var(--text-light);
  }
  
  #tab-switcher button.active {
    background: #ffffff;
    color: var(--purple);
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  }
  
  #tab-switcher button:hover:not(.active) {
    color: var(--text-dark);
  }
  
  /* ── GOOGLE BUTTON ──────────────────────────────────────────── */
  #google-signin-btn,
  #google-signup-btn {
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.15s ease;
    margin-bottom: 20px;
  }
  
  #google-signin-btn:hover,
  #google-signup-btn:hover {
    background: var(--bg-input);
    border-color: #4285F4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66,133,244,0.15);
  }
  
  #google-signin-btn:active,
  #google-signup-btn:active {
    transform: translateY(0);
    box-shadow: none;
  }
  
  /* ── PASSWORD STRENGTH RULES ────────────────────────────────── */
  #password-rules {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--bg-input);
    border-radius: 8px;
  }
  
  #password-rules.visible {
    display: flex;
    animation: fadeIn 0.2s ease;
  }
  
  .rule {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .rule.rule-passed {
    color: var(--success);
  }
  
  /* ── FORGOT PASSWORD LINK ───────────────────────────────────── */
  #forgot-link {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--purple);
    text-decoration: none;
    margin-bottom: 20px;
    margin-top: -8px;
    transition: color 0.15s ease;
  }
  
  #forgot-link:hover {
    color: var(--purple-hover);
    text-decoration: underline;
  }
  
  /* ── PRIMARY BUTTONS ────────────────────────────────────────── */
  #signin-btn,
  #signup-btn,
  #forgot-btn, 
  #reset-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: var(--purple);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(124,110,250,0.3);
    margin-bottom: 16px;
  }
  
  #signin-btn:hover,
  #signup-btn:hover,
  #forgot-btn:hover,
  #reset-btn:hover {
    background: var(--purple-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,110,250,0.4);
  }
  
  #signin-btn:active,
  #signup-btn:active,
  #forgot-btn:active,
  #reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124,110,250,0.3);
  }
  
  #signup-btn:disabled,
  #reset-btn:disabled {
    background: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
  }
  
  /* ── FORGOT PASSWORD FORM ───────────────────────────────────── */
  #forgot-form h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
  }
  
  #forgot-form p {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 24px;
    line-height: 1.5;
  }
  
  #forgot-form a {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
  }
  
  #forgot-form a:hover {
    color: var(--purple);
  }
  
  /* ── SUCCESS STATE ──────────────────────────────────────────── */
  #success-state {
    text-align: center;
    padding: 32px 0;
  }
  
  #success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ECFDF5;
    color: var(--success);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 2px solid var(--success);
  }
  
  #success-state h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
  }
  
  #success-state p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 28px;
  }
  
  #success-state a {
    font-size: 13px;
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
  }
  
  #success-state a:hover {
    text-decoration: underline;
  }

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #main-container {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh;
  }

  #left-panel {
    display: none !important;
  }

  #right-panel {
    width: 100% !important;
    padding: 40px 24px;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 60px;
  }

  #right-panel > * {
    max-width: 100%;
  }

  #mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    width: 100%;
  }

  #mobile-logo span {
    font-size: 22px;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: -0.04em;
  }
}