/* LOGIN SECTION — MAIN CONTENT AREA*/
.login-section {
  background: var(--secondary-color);
  min-height: calc(100vh - var(--navbar-h) - 40px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
}

/* Subtle dot/grid background overlay */
.login-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Left red edge accent */
.login-section::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
  z-index: 4;
}

/* Large UGA watermark text */
.login-wm {
  position: absolute;
  right: -1%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(9rem, 22vw, 26rem);
  font-weight: 700;
  color: rgba(186, 12, 47, 0.05);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.login-inner {
  position: relative;
  z-index: 10;
  width: 100%;
}


/* SIGN IN AS — PAGE HEADING */
.signin-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.signin-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.signin-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.signin-heading .divider-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.signin-heading .divider-line::before,
.signin-heading .divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.signin-heading .divider-line span {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}


/* ROLE SELECTOR */
.role-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.role-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-mid);
  color: rgba(255, 255, 255, 0.5);
  min-width: 110px;
}

.role-tab:hover {
  border-color: var(--primary-color);
  background: rgba(186, 12, 47, 0.08);
  color: var(--white);
}

.role-tab.active {
  border-color: var(--primary-color);
  background: rgba(186, 12, 47, 0.14);
  color: var(--white);
  box-shadow: 0 0 20px rgba(186, 12, 47, 0.2);
}

.role-tab i {
  font-size: 1.8rem;
}

.role-tab span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/*  LOGIN CARD */
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* Red top accent bar */
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

/* Card dark header */
.login-card-head {
  background: var(--secondary-light);
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.login-card-head img {
  height: 34px;
  width: auto;
}

.login-card-head-text h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.login-card-head-text span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.login-card-body {
  padding: 2rem;
}


/* FORM FIELDS */
.login-form-label {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-dark);
  margin-bottom: 0.4rem;
  display: block;
}

.login-form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: #f8f8f8;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.login-form-control:focus {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.1);
}

.login-form-control::placeholder {
  color: #aaa;
}

/* Wrapper for icon + input */
.input-group-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-mid);
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.input-group-wrapper:focus-within .input-icon {
  color: var(--primary-color);
}

/* Show/hide password toggle button */
.password-toggle {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--neutral-mid);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: var(--primary-color);
}


/* FORGOT PASSWORD LINK */
.forgot-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--primary-color);
  font-weight: 600;
  text-align: right;
  width: 100%;
  margin-top: -0.6rem;
  margin-bottom: 1.4rem;
  transition: color var(--transition-fast);
}

.forgot-link:hover {
  color: var(--primary-light);
}


/* ERROR MESSAGE BOX */
.login-error-box {
  display: none;
  color: var(--primary-color);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  margin-bottom: 1rem;
  padding: 0.6rem 0.9rem;
  background: rgba(186, 12, 47, 0.06);
  border-left: 3px solid var(--primary-color);
  border-radius: 2px;
}

.login-error-box.visible {
  display: block;
}


/* LOGIN SUBMIT BUTTON */
.btn-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--primary-color);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-mid);
}

.btn-login-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(186, 12, 47, 0.48);
}

.btn-login-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}


/* FORM DIVIDER & SIGN-UP PROMPT */
.form-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.form-divider span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.signup-prompt {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #666;
}

.signup-prompt a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.signup-prompt a:hover {
  color: var(--primary-light);
}

/* Security note under card */
.login-secure-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1.25rem;
}

.login-secure-note a {
  color: var(--primary-color);
}


/* FEATURE PANEL (left column — desktop only) */
.login-feature-panel {
  background: linear-gradient(155deg, #0c0507 0%, #1b090c 45%, #0a0a0e 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  height: 100%;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Red top accent bar */
.login-feature-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

/* Radial red glow */
.login-feature-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 28% 60%, rgba(186, 12, 47, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 45% 65% at 78% 35%, rgba(186, 12, 47, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.panel-logo {
  height: 40px;
  width: auto;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  position: relative;
  z-index: 2;
  margin-bottom: 0.75rem;
}

.panel-title em {
  color: var(--primary-color);
  font-style: normal;
}

.panel-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

/* Feature checklist */
.panel-features {
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.panel-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.panel-features li i {
  color: var(--primary-color);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Stats mini row */
.panel-stats {
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.panel-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 2px solid var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem;
  text-align: center;
}

.panel-stat-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.panel-stat-num span {
  color: var(--primary-color);
}

.panel-stat-lbl {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* Live platform pill */
.login-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-color);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.65rem;
  border-radius: 2px;
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 3;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #B4BD00;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}


/* FORGOT PASSWORD MODAL (login-page specific) */
.forgot-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.forgot-modal-overlay.active {
  display: flex;
}

.forgot-modal-box {
  background: var(--white);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalDrop 0.3s cubic-bezier(.22, .68, 0, 1.2);
}

.forgot-modal-head {
  background: var(--primary-color);
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-modal-head h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

.forgot-modal-body {
  padding: 1.6rem;
}

.forgot-modal-body p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #555;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.forgot-back-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.forgot-back-link:hover {
  color: var(--primary-light);
}


/* LOGIN PAGE — RESPONSIVE */
@media (max-width: 991.98px) {
  .login-feature-panel {
    min-height: 300px;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .login-section {
    padding: 2rem 0;
  }

  .login-card-body {
    padding: 1.5rem;
  }

  .signin-heading {
    margin-bottom: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .role-tabs {
    gap: 0.5rem;
  }

  .role-tab {
    min-width: 80px;
    padding: 0.6rem 1rem;
  }

  .role-tab i {
    font-size: 1.4rem;
  }

  .login-card-head {
    padding: 1.1rem 1.25rem;
  }
}