/* ==========================================================================
   African Educational Consult • Deep Brown + Gold Login
   UPS-inspired • Trusted • Institutional • Final
   ========================================================================== */

/* --------------------------------------------------------------------------
   AEC MASTER PALETTE — Darker Brown + Stronger Gold
   -------------------------------------------------------------------------- */
:root {
  /* Brand browns */
  --aec-primary: #55341f; /* deep cocoa brown */
  --aec-primary-dark: #3b2314; /* dark umber */

  /* Gold accent (boosted) */
  --aec-accent: #f5c012; /* rich golden yellow */

  /* Surfaces (darker by ~10%) */
  --aec-bg: #5f402a; /* UPS brown */
  --aec-bg-dark: #462c1a; /* deeper shadow brown */
  --aec-panel: #f6f2ec; /* warm off-white card */

  /* Text */
  --aec-text: #24160e; /* deep bark text */
  --aec-muted: #6a5648;

  /* Radius */
  --radius: 14px;
  --radius-lg: 18px;
}

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: linear-gradient(135deg, var(--aec-bg), var(--aec-bg-dark));
  color: var(--aec-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   SPLIT LOGIN LAYOUT
   ========================================================================== */
.split-login {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Gold divider (more visible, still elegant) */
.split-login::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(245, 192, 18, 0),
    rgba(245, 192, 18, 0.75),
    rgba(245, 192, 18, 0)
  );
}

/* ==========================================================================
   LEFT • HERO PANEL
   ========================================================================== */
.hero-side {
  background:
    linear-gradient(to right, rgba(36, 22, 14, 0.65), rgba(36, 22, 14, 0.25)),
    url("/pages/img/student-login-hero.jpg") center / cover no-repeat;
  position: relative;
}

.hero-text {
  position: absolute;
  bottom: 8%;
  left: 8%;
  max-width: 380px;
}

.hero-text h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.hero-text p {
  font-size: 1.1rem;
  color: #f4e7d8;
}

/* ==========================================================================
   RIGHT • LOGIN PANEL
   ========================================================================== */
.right-login {
  background: linear-gradient(135deg, #6a4830, #55341f);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* ==========================================================================
   LOGIN CARD — STRONG CONTRAST
   ========================================================================== */
.card {
  width: 100%;
  max-width: 460px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--aec-panel);
  border: 1px solid rgba(85, 52, 31, 0.45);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(245, 192, 18, 0.25);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 55px 150px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(245, 192, 18, 0.35);
}

/* ==========================================================================
   TITLES
   ========================================================================== */
.title {
  font-size: 1.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sub {
  font-size: 1rem;
  color: var(--aec-muted);
  margin-bottom: 26px;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */
label {
  display: block;
  text-align: left;
  font-size: 0.9rem;
  color: var(--aec-muted);
  margin: 10px 0 6px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(85, 52, 31, 0.45);
  background: #efe9e3;
  color: var(--aec-text);
  font-size: 1rem;
}

.input::placeholder {
  color: rgba(106, 86, 72, 0.65);
}

.input:focus {
  outline: none;
  border-color: var(--aec-accent);
  box-shadow: 0 0 0 2px rgba(245, 192, 18, 0.45);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  width: 100%;
  height: 52px;
  margin-top: 20px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    var(--aec-primary),
    var(--aec-primary-dark)
  );
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(59, 35, 20, 0.7);
}

/* Google button */
#google-btn {
  background: linear-gradient(135deg, #ffffff, #ece6de);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

#google-btn:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .split-login {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }
}
