:root {
  --bg: #ffffff;
  --surface: #ffeeee;
  --text: #f83535;
  --muted: #d3d3d3;
  --accent: #e91e1e;
  --accent-dark: #a61c1c;
  --border: #ff0707;
  --radius: 24px;
  --shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Base */
body.login-screen {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column; /* ✅ fixed */
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 80px; /* keeps content below header */
}

/* Header */
#mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px 24px;
  z-index: 1000;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo {
  width: 50px;
  height: auto;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
nav ul li a {
  text-decoration: none;
  color: var(--accent);
  font-weight: bold;
  transition: color 0.2s ease;
}
nav ul li a:hover {
  color: var(--accent-dark);
}

/* Layout */
.login-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px; /* ✅ reduced for balance */
  margin-top: 50px;
}
.photo-column {
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-photo {
  width: 600px;
  height: 600px;
  border-radius: 12px;
  object-fit: cover;
}

/* Login card */
#loginFormWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;      /* ✅ more breathing room */
  width: 100%;
  max-width: 800px;   /* ✅ wider box */
  text-align: center;
  font-size: 1.1rem;
}
.login-title {
  color: var(--accent);
  margin-bottom: 20px;
}

/* Form */
#loginForm {
  width: 100%;
  max-width: none; /* ✅ remove cap */
}
#loginForm input,
#loginForm button {
  width: 100%;
}

/* Inputs */
input[type="email"],
input[type="password"] {
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: #ffeeee;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
}
input:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px rgba(214, 40, 40, 0.4);
}

/* Buttons */
.btn-primary {
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-secondary {
  padding: 12px;
  background: #ffeeee;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-google:hover {
  background: var(--accent);
  color: #fff;
}
.google-icon {
  width: 20px;
  height: 20px;
}

/* Status messages */
.status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.status.ok {
  color: #4caf50;
}
.status.warn {
  color: #ff7300;
}

/* Utility */
.hidden {
  display: none !important;
}
.fade-in {
  animation: fadeIn 0.4s ease-out both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .login-layout {
    flex-direction: column;
    gap: 20px;
  }
  .login-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
  #loginFormWrapper {
    width: 100%;
    max-width: 100%;
  }
}#loginForm button.btn-primary {
  margin-bottom: 16px;
}
#loginForm button.btn-secondary {
  margin-bottom: 16px;
}