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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1b2540;
  color: #e2e8f0;
  font-family: 'Segoe UI', sans-serif;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #3f527d;
  border: 1px solid #6e82b2;
  border-radius: 16px;
  padding: 2rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.auth-card .subtitle {
  font-size: 0.875rem;
  color: #a8b5cc;
  margin-bottom: 1.75rem;
}

.auth-card label {
  display: block;
  font-size: 0.8rem;
  color: #c1cce0;
  margin-bottom: 0.35rem;
}

.auth-card input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #6e82b2;
  border-radius: 8px;
  background: #2b3f68;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.auth-card input:focus {
  outline: none;
  border-color: #93c5fd;
}

.auth-card button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: #4f8ef7;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-card button:hover:not(:disabled) {
  background: #3b7de0;
}

.auth-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

.auth-links a {
  color: #dbeafe;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.message {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.message.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.message.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.message.warning {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde047;
}

.back-link {
  margin-top: 1.5rem;
  font-size: 0.8rem;
}

.back-link a {
  color: #a8b5cc;
  text-decoration: none;
}

.auth-card .section-title {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.95rem;
  color: #f8fafc;
}

.auth-card .section-title:first-of-type {
  margin-top: 0;
}

.auth-card .hint {
  font-size: 0.75rem;
  color: #a8b5cc;
  margin: -0.5rem 0 1rem;
}

.profile-readonly {
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #6e82b2;
  border-radius: 8px;
  background: #2b3f68;
  color: #c1cce0;
  font-size: 0.9rem;
}

.auth-card hr {
  border: none;
  border-top: 1px solid #6e82b2;
  margin: 1.5rem 0;
}
