/* ============================================================
   login.css — Styles for the standalone login page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root { --ai-primary: #4f46e5; --ai-accent: #06b6d4; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body { font-family: 'Inter', sans-serif; height: 100%; overflow: hidden; }

.login-wrapper { display: flex; height: 100vh; }

/* ── Left Panel ─────────────────────────────────────────── */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem; position: relative; overflow: hidden;
}
.login-left::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(79,70,229,0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(6,182,212,0.25) 0%, transparent 50%);
}

.left-content { position: relative; text-align: center; max-width: 380px; }

.brand-logo {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-bottom: 2.5rem; text-decoration: none;
}
.brand-logo .logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-accent));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  box-shadow: 0 8px 20px rgba(79,70,229,0.4);
}
.brand-logo .logo-text { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.brand-logo .logo-text span { color: #67e8f9; }

.left-headline { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 1rem; line-height: 1.2; }
.left-sub { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2.5rem; }

.pill-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.pill-list li { display: flex; align-items: center; gap: 0.75rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.pill-list li i {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(79,70,229,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #a5b4fc; font-size: 0.75rem; flex-shrink: 0;
}

/* ── Right Panel ─────────────────────────────────────────── */
.login-right {
  width: 480px; flex-shrink: 0; background: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2.5rem; overflow-y: auto;
}
.login-form-wrap { width: 100%; max-width: 380px; }

.form-headline { font-size: 1.7rem; font-weight: 800; color: #111827; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.form-sub { color: #6b7280; font-size: 0.9rem; margin-bottom: 2rem; }

.input-group-custom { margin-bottom: 1.2rem; }
.input-group-custom label { display: block; font-size: 0.85rem; font-weight: 600; color: #374151; margin-bottom: 0.4rem; }
.input-group-custom .input-wrap { position: relative; }
.input-group-custom .input-wrap i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 0.9rem; }
.input-group-custom input {
  width: 100%; padding: 0.75rem 0.9rem 0.75rem 2.5rem;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  color: #111827; background: #f9fafb; transition: all 0.2s; outline: none;
}
.input-group-custom input:focus { border-color: var(--ai-primary); background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }

.toggle-pass {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 0.9rem; padding: 0;
}
.toggle-pass:hover { color: var(--ai-primary); }

.btn-login {
  width: 100%; padding: 0.85rem; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-accent));
  color: #fff; font-weight: 700; font-size: 1rem;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 0.5rem;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(79,70,229,0.35); }
.btn-login:disabled { opacity: 0.7; transform: none; cursor: not-allowed; }

.error-banner {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
  padding: 0.75rem 1rem; color: #dc2626; font-size: 0.88rem;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
}

.back-link {
  display: flex; align-items: center; gap: 0.4rem; color: #6b7280;
  font-size: 0.85rem; text-decoration: none; margin-bottom: 2rem; transition: color 0.2s;
}
.back-link:hover { color: var(--ai-primary); }

@media (max-width: 768px) {
  .login-left { display: none; }
  .login-right { width: 100%; }
}
