* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif; }
:root {
  --primary: #1a3a5c; --primary-light: #2c5282; --accent: #2b6cb0; --teal: #14b8a6;
  --danger: #e53e3e; --bg: #f0f4f8; --card-bg: #ffffff; --text: #1a202c; --text-light: #718096;
  --border: #e2e8f0; --radius: 12px; --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}
body { background: var(--bg); color: var(--text); min-height: 100vh; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 42%) 1fr; }

.login-brand {
  background: var(--primary); color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-icon {
  width: 52px; height: 52px; background: var(--teal); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.35rem;
  flex-shrink: 0; box-shadow: 0 4px 10px rgba(20,184,166,0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 2rem; font-weight: 700; letter-spacing: 1.4px; }
.brand-sub { font-size: 0.75rem; letter-spacing: 1.6px; color: #a8b6cc; font-weight: 600; margin-top: 4px; }
.brand-tagline { font-size: 0.9rem; color: #e2e8f0; line-height: 1.45; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); max-width: 380px; }
.brand-tagline strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 6px; }

.login-card {
  align-self: center; justify-self: center; width: 100%; max-width: 420px; margin: 32px 16px;
  background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 36px 32px;
}
.mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 20px; }
.mobile-brand .brand-icon { width: 40px; height: 40px; font-size: 1rem; }
.mobile-brand .brand-name { font-size: 1.4rem; color: var(--primary); }
.login-card h1 { font-size: 1.5rem; color: var(--primary); margin-bottom: 6px; }
.login-sub { color: var(--text-light); font-size: 0.9rem; margin-bottom: 24px; }

form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.85rem; }
.input-icon input {
  width: 100%; padding: 11px 40px 11px 36px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; background: #fff; color: var(--text);
}
.input-icon input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,108,176,0.12); }
.toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-light); cursor: pointer; padding: 6px; }
.form-error { font-size: 0.72rem; color: var(--danger); display: none; }
.form-error.visible { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; }
.btn-block { width: 100%; margin-top: 4px; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 16px; }
.alert-danger { background: #fff5f5; border: 1px solid #fc8181; color: #742a2a; }
.login-foot { margin-top: 22px; font-size: 0.75rem; color: var(--text-light); text-align: center; }

@media (max-width: 800px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .mobile-brand { display: flex; }
  .login-card { padding: 28px 20px; }
}
