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

:root {
  --bg-dark: #0a0c0f;
  --bg-card: #13161b;
  --bg-input: #1a1e25;
  --border: #2a2f3a;
  --border-focus: #c8a96e;
  --accent: #c8a96e;
  --accent-hover: #e0c080;
  --text-primary: #e8e6e0;
  --text-secondary: #7a8090;
  --error: #e05555;
  --success: #4caf7d;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 169, 110, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(60, 80, 120, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.subtitle {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.1);
}

input::placeholder { color: var(--text-secondary); opacity: 0.5; }

.error-message {
  background: rgba(224, 85, 85, 0.1);
  border: 1px solid rgba(224, 85, 85, 0.3);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: var(--error);
  text-align: center;
}

.btn-login {
  background: var(--accent);
  color: #0a0c0f;
  border: none;
  border-radius: 6px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.25rem;
}

.btn-login:hover { background: var(--accent-hover); }
.btn-login:active { transform: scale(0.98); }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
