/* login.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --brand-core: #D32E22;
  --brand-blue-ink: #00063D;
  --brand-paper: #FBF9F9; /* Critical for the background contrast */
  --brand-white: #FFFFFF;
  --brand-ink: #0A0A0A;
  --brand-calm: #D2E9FE;
  --text-muted: #6B7280;  /* Standard gray for utility text */
}

/* Global Reset */
body, html {
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  font-family: 'Poppins', sans-serif;
  background-color: var(--brand-white);
  overflow-x: hidden;
}

/* --- Layout --- */
.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* --- Left Column: Brand Panel --- */
.login-left {
  flex: 1;
  width: 50%;
  background-color: var(--brand-blue-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--brand-white);
}

.login-bg-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 6, 61, 0.9) 100%);
  z-index: 1;
}

.login-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.login-brand-logo {
  max-width: 350px;
  margin-bottom: 100px;
  display: inline-block;
}

.login-headline {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--brand-white);
}

.login-subhead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Right Column: Login Area --- */
.login-right {
  flex: 1;
  width: 50%;
  background-color: var(--brand-paper); /* Off-white background */
  display: flex;
  flex-direction: column; /* Changed to column to stack Header, Card, Footer */
  justify-content: space-between; /* Pushes content to edges */
  align-items: center;
  padding: 30px;
}

/* Utility Header (Top Right) */
.login-utility-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 0 10px;
}

.utility-link {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.utility-link:hover {
  color: var(--brand-blue-ink);
  text-decoration: underline;
}

/* Card Container (Center) */
.login-card-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1; /* Takes up available space */
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--brand-white); /* Pure white card */
  padding: 48px 40px;
  border-radius: 20px;
  /* Crisper shadow for pop */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.03);
}

.form-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-blue-ink);
  margin-bottom: 32px;
  text-align: center;
}

/* Form Styles */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue-ink);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  border: 1px solid #E5E7EB; /* Lighter border */
  background-color: var(--brand-white);
  padding: 0 16px;
  font-size: 15px;
  color: var(--brand-ink);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--brand-blue-ink);
  box-shadow: 0 0 0 4px var(--brand-calm);
  outline: none;
}

.btn-primary-brand {
  width: 100%;
  height: 50px;
  background-color: var(--brand-core);
  color: var(--brand-white);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 12px;
}

.btn-primary-brand:hover {
  background-color: #B22218;
}

.error-msg {
  color: var(--brand-core);
  font-size: 14px;
  background: #FEF2F2;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  border: 1px solid rgba(211, 46, 34, 0.1);
}

/* Utility Footer (Bottom) */
.login-utility-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  gap: 24px;
  opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .login-wrapper { flex-direction: column; }
  .login-left { min-height: 300px; padding: 40px 20px; }
  .login-left .login-bg-overlay { background: var(--brand-blue-ink); }
  .login-brand-logo { margin-bottom: 20px; max-width: 150px; }
  .login-headline { font-size: 28px; margin-bottom: 10px; }
  .login-subhead { display: none; } /* Hide subhead on mobile to save space */
  
  .login-right { padding: 20px; background-color: var(--brand-white); }
  .login-card { box-shadow: none; border: none; padding: 0; }
  .login-utility-header { justify-content: center; margin-bottom: 20px; }
  .login-utility-footer { margin-top: 40px; flex-direction: column; gap: 10px; }
}