/* --- RESET & BASICS --- */
:root {
  --uni-navy: #0f172a;
  --uni-blue: #1e40af;
  --uni-gold: #fbbf24;
  --uni-gray: #64748b;
  --uni-border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
  /* Prevent scrolling on login page */
  background: #fff;
}

/* --- LAYOUT CONTAINER --- */
.auth-page {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* --- LEFT SIDE: HERO --- */
.auth-left {
  flex: 1;
  /* Takes up remaining space */
  background-color: var(--uni-navy);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  color: white;
  /* Fancy Grid Background Pattern */
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
    url('../img/campus-bg.jpg');
  /* Fallback pattern below if image missing */
  background-size: cover;
  background-position: center;
}

/* Geometric Overlay if image fails */
.auth-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  pointer-events: none;
}

.auth-branding {
  position: relative;
  /* Above overlay */
  z-index: 2;
  max-width: 500px;
}

.auth-branding img {
  height: 80px;
  /* FIXED HEIGHT - No more massive logo */
  width: auto;
  margin-bottom: 2rem;
}

.brand-headers h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

.brand-headers p {
  font-size: 1.1rem;
  color: #cbd5e1;
  /* Light gray for readability */
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 90%;
}

/* Badges */
.accreditation-badges {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  /* Stack vertically for cleanliness */
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: fit-content;
}

.badge-item i {
  color: var(--uni-gold);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.badge-item span {
  font-weight: 500;
  color: white;
}

/* --- RIGHT SIDE: FORM --- */
.auth-right {
  width: 550px;
  /* Fixed width for login side */
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  position: relative;
  box-shadow: -10px 0 20px rgba(0, 0, 0, 0.05);
  /* Shadow over left side */
}

.auth-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .auth-page {
    flex-direction: column;
    overflow-y: auto;
    /* Allow scroll on mobile */
  }

  .auth-left {
    display: none;
    /* Hide hero on small screens for simplicity */
  }

  .auth-right {
    width: 100%;
    padding: 2rem;
  }
}

/* --- FORM ELEMENTS --- */
.auth-header {
  margin-bottom: 2.5rem;
}

.auth-header span {
  text-transform: uppercase;
  color: var(--uni-blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.auth-header h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: var(--uni-navy);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--uni-gray);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0;
  /* Underline style */
  font-size: 1rem;
  color: var(--uni-navy);
  border: none;
  border-bottom: 2px solid var(--uni-border);
  outline: none;
  background: transparent;
  transition: all 0.3s;
}

.form-control:focus {
  border-bottom-color: var(--uni-blue);
}

.form-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--uni-gray);
}

.auth-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--uni-navy);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
}

.auth-submit:hover {
  background-color: var(--uni-blue);
}

/* Auth Options (Remember Me / Reset) */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--uni-gray);
  flex-wrap: wrap;
  /* Allow wrapping on smaller desktop windows */
  gap: 1rem;
}

.auth-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--uni-border);
  font-size: 0.85rem;
  color: var(--uni-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* Safety wrap */
  gap: 0.5rem;
}

.auth-footer a {
  color: var(--uni-blue);
  text-decoration: none;
  font-weight: 500;
}

/* Mobile Tweaks - Expanded to Tablet size */
@media (max-width: 800px) {
  .auth-page {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .auth-left {
    padding: 3rem 2rem;
    min-height: 300px;
  }

  .auth-right {
    width: 100%;
    padding: 2rem;
    box-shadow: none;
  }

  .auth-container {
    max-width: 100%;
  }

  .auth-options {
    flex-direction: column;
    /* Stack strictly on mobile/tablet */
    align-items: flex-start;
  }

  .remember-me {
    margin-bottom: 0.5rem;
  }

  .auth-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}