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

:root {
  --primary: #3a7afe;
  --primary-dark: #2563eb;
  --primary-light: #eff4ff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
}

html, body {
  min-height: 100vh;
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* BACK LOGO */
.back-logo {
  position: fixed;
  top: 20px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  z-index: 10;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* LAYOUT */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* LEFT — FORM */
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 80px 60px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.login-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.login-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: -10px;
}

/* ERROR */
.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
}

/* GOOGLE */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-google:hover { background: var(--bg); border-color: #d1d5db; }
.btn-google:disabled { opacity: 0.6; cursor: not-allowed; }

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* FIELDS */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.forgot-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }
.field input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58,122,254,0.1);
}
.password-wrap {
  position: relative;
}
.password-wrap input { padding-right: 42px; }
.toggle-pw {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  padding: 2px;
  line-height: 1;
}

/* LOGIN BUTTON */
.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-login:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.signup-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.signup-link a { color: var(--primary); text-decoration: none; font-weight: 600; }
.signup-link a:hover { text-decoration: underline; }

/* RIGHT — ASIDE */
.login-aside {
  background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 60%, #3a7afe 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 60px;
  gap: 48px;
  color: white;
}

.aside-quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-stars { color: #fbbf24; font-size: 18px; letter-spacing: 2px; }
.aside-quote p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.95;
  max-width: 400px;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.quote-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.quote-name { font-size: 14px; font-weight: 700; }
.quote-role { font-size: 12px; opacity: 0.7; margin-top: 1px; }

.aside-stats {
  display: flex;
  gap: 36px;
}
.aside-stat-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.aside-stat-label {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-card { padding: 100px 28px 48px; max-width: 100%; }
  .back-logo { left: 20px; }
}
