:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-green: #399B80;
  --primary-blue: #00347C;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* === Sidebar visual identity === */
  --sidebar-background: linear-gradient(180deg, #399B80 0%, #00347C 100%);
  --sidebar-foreground: 0 0% 100%;
  --sidebar-primary: 165 46% 42%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 215 100% 24%;
  --sidebar-accent-foreground: 0 0% 100%;
  --sidebar-border: 0 0% 100% / 15%;
  --sidebar-ring: 165 46% 42%;
}

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

body {
  font-family: "Montserrat", sans-serif;
  background-image: var(--sidebar-background);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background: var(--card-bg);
  padding: 10px 40px;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.logo {
  width: 150px;
  margin-bottom: 20px;
  margin-inline: auto;
  position: relative;
  left: -8px;
}

h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--primary-blue);
  letter-spacing: -0.025em;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  transition: all 0.2s ease;
  background: #fcfcfc;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: white;
}

button {
  margin-top: 12px;
  padding: 14px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

button:hover {
  background: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

button:active {
  transform: translateY(0);
}

#status {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  font-weight: 500;
}

/* Loader Styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: white;
  text-align: center;
  padding: 20px;
}

.loader-overlay.active {
  display: flex;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-message {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.loader-subtext {
  font-size: 14px;
  opacity: 0.8;
}
