@font-face {
  font-family: 'SF Pro Display';
  src:
    url('./fonts/SFProDisplay-Regular.woff2') format('woff2'),
    url('./fonts/SF-Pro-Display-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src:
    url('./fonts/SFProDisplay-Bold.woff2') format('woff2'),
    url('./fonts/SF-Pro-Display-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    linear-gradient(132deg, transparent 66%, rgba(18, 52, 140, 0.68) 66%),
    #2255e3;
  color: #f6f8ff;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(440px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 31, 91, 0.75);
  box-shadow: 0 18px 60px rgba(8, 19, 61, 0.35);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.login-card h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.login-card p {
  margin: 0;
  opacity: 0.9;
}

#login-form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
button {
  width: 100%;
  font: inherit;
}

input {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #f6f8ff;
  padding: 11px 12px;
}

button {
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: #33ccff;
  color: #11338c;
  font-weight: 700;
  padding: 11px 12px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-status {
  display: none;
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.93rem;
  line-height: 1.2;
}

.login-status.visible {
  display: inline-flex;
  align-items: center;
}

.login-status.error {
  color: #ffd5d5;
  border: 1px solid rgba(255, 133, 133, 0.7);
  background: rgba(134, 33, 33, 0.4);
}

.login-status.success {
  color: #d9ffe9;
  border: 1px solid rgba(56, 209, 132, 0.7);
  background: rgba(24, 129, 71, 0.4);
}
