:root {
  --primary: #07507b;
  --accent: #7195cd;
  --accent-light: #e8f0fb;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;
  --red: #DC2626;
  --radius: 8px;
  --radius-sm: 5px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* subtle background grid */
body::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
body::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(113,149,205,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  width: 380px;
  max-width: 95vw;
  padding: 40px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.1);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo img {
  width: 150px; height: auto; display: block; margin: 0 auto;
}
.login-logo-sub {
  font-size: 11px; color: var(--text-3); letter-spacing: 0.14em;
  text-transform: uppercase; margin-top: 14px;
}
.login-divider {
  width: 32px; height: 2px; background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

.login-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; text-align: center;
}
.login-sub {
  font-size: 12px; color: var(--text-3); text-align: center;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 16px; }
.form-label {
  font-size: 12px; font-weight: 600; color: var(--text);
  display: block; margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13px; color: var(--text);
  background: #fff; outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--accent); }
.form-input.error { border-color: var(--red); }

.alert {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 12px; line-height: 1.5; margin-bottom: 16px;
}
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.alert-info { background: var(--accent-light); border: 1px solid #b8cef0; color: var(--primary); }

.login-btn {
  width: 100%; padding: 11px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
  margin-top: 8px; letter-spacing: 0.02em;
}
.login-btn:hover { background: #0a6699; }
.login-btn:active { background: #054d77; }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.forgot-link {
  display: block; text-align: center;
  margin-top: 14px;
  font-size: 11px; color: var(--text-2);
  text-decoration: none; cursor: pointer;
  transition: color 0.15s;
}
.forgot-link:hover { color: var(--primary); }
