:root {
  --bg: #ffffff;
  --text: #0A1F44;
  --muted: #8A93A2;
  --border: #E5E7EB;
  --primary: #0A1F44;
  --primary-hover: #D4AF37;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Card */
.login-box {
  width: 380px;
  max-width: 94vw;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.login-box::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  background:
    radial-gradient(closest-side, rgba(13,31,68,0.06), transparent 70%),
    conic-gradient(from 180deg at 50% 50%, rgba(13,31,68,0.08), transparent);
  transform: rotate(8deg);
  pointer-events: none;
}

.login-box img {
  width: 104px;
  margin-bottom: 18px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

h2 {
  margin-bottom: 22px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* Input */
.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group input {
  width: 100%;
  height: 46px;
  padding: 0 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color 400ms ease, box-shadow 400ms ease;
}

.input-group input::placeholder {
  color: var(--muted);
}

.input-group input:focus {
  outline: none;
  border-color: #B7C3D0;
  box-shadow: 0 0 0 4px rgba(13,31,68,0.08);
}

.input-group .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--muted);
  pointer-events: none;
}

/* Button */
button {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 300ms ease, background 400ms ease, box-shadow 400ms ease;
  box-shadow: 0 8px 18px rgba(10,31,68,0.18);
}

button:hover {
  background: var(--primary-hover);
  color: #000;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(10,31,68,0.16);
}

button.loading {
  pointer-events: none;
  opacity: 0.92;
}

button.loading::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  background: var(--primary-dark);
  color: var(--surface);
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2000;
  border-left: 4px solid var(--accent-gold);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { 
  background: #10B981; 
  border-left-color: #059669;
}

.toast.error { 
  background: #EF4444; 
  border-left-color: #DC2626;
}

.toast.warning { 
  background: #F59E0B; 
  color: var(--primary-dark);
  border-left-color: #D97706;
}

/* Responsive */
@media (max-width: 480px) {
  .login-box {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 28px 18px 32px;
  }

  .login-box img {
    width: 88px;
    margin-bottom: 14px;
  }

  h2 { font-size: 20px; }

  .input-group input,
  button { height: 48px; font-size: 15px; }

  .input-group .icon { width: 19px; height: 19px; left: 12px; }

  .toast {
    left: 12px;
    bottom: 12px;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
  }
}
