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

:root {
  --blue:        #1B2D5B;
  --blue-dark:   #0f1e3d;
  --yellow:      #F5C400;
  --yellow-dark: #d4a900;
  --white:       #ffffff;
  --gray-bg:     #F4F4F4;
  --gray-mid:    #666;
  --border:      #dde0e8;
  --red:         #c62828;
  --red-bg:      #ffebee;
  --red-border:  #ffcdd2;
  --shadow-card: 0 24px 64px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.2);
}

html { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(140deg, var(--blue-dark) 0%, var(--blue) 60%, #1a3570 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

/* subtle background texture */
body::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at 30% 20%, rgba(245,196,0,.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-card);
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .08em;
}

.logo-tagline {
  font-size: .58rem;
  font-weight: 600;
  color: var(--gray-mid);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: .2rem;
}

/* ── Headings ── */
.login-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin-bottom: .35rem;
}

.login-subtitle {
  font-size: .82rem;
  color: var(--gray-mid);
  text-align: center;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── Error banner ── */
.error-message {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-left: 4px solid var(--red);
  color: var(--red);
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .855rem;
  margin-bottom: 1.1rem;
  line-height: 1.45;
}

/* ── Form ── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}

.form-group input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: .95rem;
  color: #111;
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(27,45,91,.13);
}

.form-group input::placeholder { color: #aab0c0; }

/* ── Submit button ── */
.btn-login {
  width: 100%;
  margin-top: .5rem;
  padding: .9rem;
  background: var(--yellow);
  color: var(--blue);
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
}

.btn-login:hover:not(:disabled) {
  background: var(--yellow-dark);
  box-shadow: 0 6px 18px rgba(245,196,0,.45);
}

.btn-login:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(245,196,0,.3);
}

.btn-login:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ── Footer note ── */
.login-footer {
  margin-top: 1.6rem;
  font-size: .76rem;
  color: #aaa;
  text-align: center;
  line-height: 1.55;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .login-card { padding: 2rem 1.5rem; }
  .login-title { font-size: 1.25rem; }
}
