/*
 * Modern Login Page Styles for Gen Z and Alpha
 * Responsive Design with Engaging UI/UX
 */

:root {
  --primary-green: #28a745;
  --primary-green-dark: #1e7e34;
  --accent-green: #20c997;
  --light-green: #d4edda;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border-color: #dee2e6;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--accent-green) 100%
  );
  --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Vanta.js Background Container */
.vanta-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Main Container */
.modern-login-container {
  min-height: 100vh;
  position: relative;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glass Frost Overlay Effects */
.modern-login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(40, 167, 69, 0.1) 0%,
      transparent 50%
    );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

.modern-login-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 25%,
    rgba(40, 167, 69, 0.03) 50%,
    transparent 75%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200px 200px;
  animation: glassPattern 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes glassPattern {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(200px, 200px);
  }
}

/* Animated Background */
.bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 5%;
  animation-delay: 2s;
}

.shape-4 {
  width: 40px;
  height: 40px;
  bottom: 10%;
  right: 20%;
  animation-delay: 3s;
}

.shape-5 {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
  background: rgba(255, 255, 255, 0.05);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Main Grid Layout */
.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 10;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* University Section */
.university-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  margin: 1rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

/* Glass Shimmer Effect */
.university-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    transform: translateX(0%) translateY(0%) rotate(45deg);
    opacity: 1;
  }
}

.university-content {
  max-width: 500px;
  color: #0f172a;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* University Branding */
.university-brand {
  margin-bottom: 3rem;
}

.brand-logo {
  margin-bottom: 1.5rem;
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.university-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.highlight {
  background: linear-gradient(45deg, #28a745, #20c997);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.university-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Announcements Section */
.announcements-section {
  margin-bottom: 3rem;
  max-width: 100%;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(40, 167, 69, 0.3);
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.section-title i {
  margin-right: 0.75rem;
  color: #28a745;
  font-size: 1.3rem;
}

.update-indicator {
  display: flex;
  align-items: center;
  background: rgba(40, 167, 69, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.update-text {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Announcements Carousel */
.announcements-carousel {
  margin-bottom: 2.5rem;
  position: relative;
}

.carousel-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 16px;
}

.announcement-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.announcement-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(31, 38, 135, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.announcement-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

.announcement-item.featured::before {
  background: #ff6b6b;
}

.announcement-item.info::before {
  background: #4ecdc4;
}

.announcement-item.success::before {
  background: #ffd93d;
}

.announcement-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(31, 38, 135, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.announcement-item:hover::before {
  width: 8px;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.indicator.active {
  background: var(--primary-green);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Announcement Header */
.announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.announcement-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  margin-right: 1rem;
}

.announcement-icon.urgent {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.announcement-icon.info {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.announcement-icon.success {
  background: linear-gradient(135deg, #ffd93d, #ffc107);
}

.announcement-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.announcement-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.announcement-badge.urgent {
  background: #ff6b6b;
  color: white;
}

.announcement-badge.info {
  background: #4ecdc4;
  color: white;
}

.announcement-badge.success {
  background: #ffd93d;
  color: #333;
}

.announcement-date {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Announcement Content */
.announcement-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.announcement-content p {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.announcement-link {
  display: inline-flex;
  align-items: center;
  color: #28a745;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: none;
}

.announcement-link:hover {
  color: #1e7e34;
  transform: translateX(4px);
}

.announcement-link i {
  margin-left: 0.4rem;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.announcement-link:hover i {
  transform: translateX(3px);
}

/* Contact Info */
.contact-info-modern {
  text-align: left;
}

.contact-item-modern {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.contact-item-modern i {
  width: 20px;
  margin-right: 0.75rem;
  color: var(--accent-green);
}

/* Login Section */
.login-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.login-card {
  width: 100%;
  max-width: 450px;
  background: rgba(8, 163, 85, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37),
    0 15px 25px rgba(8, 163, 85, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  animation: slideInRight 0.8s ease-out;
  position: relative;
}

/* Login Card Glass Effects */
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.login-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: loginCardShine 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes loginCardShine {
  0%,
  100% {
    left: -100%;
    opacity: 0;
  }
  50% {
    left: 100%;
    opacity: 1;
  }
}

/* Login Header */
.login-header {
  padding: 1.5rem 1.5rem 0.75rem;
  text-align: center;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.welcome-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #08a355;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 20px rgba(31, 38, 135, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.login-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0.5rem auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Form Container */
.login-form-container {
  padding: 1rem 1.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 10;
}

.modern-form {
  width: 100%;
}

/* Form Groups */
.form-group-modern {
  margin-bottom: 1.5rem;
}

.form-label-modern {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-label-modern i {
  margin-right: 0.5rem;
  color: #ffd700;
  width: 18px;
  font-size: 1.2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.required-star {
  color: #e74c3c;
  margin-left: 0.25rem;
  font-weight: 700;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
}

.form-input-modern {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  font-weight: 500;
}

.form-input-modern:focus {
  outline: none;
  border-color: #ffd700;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.form-input-modern.is-invalid {
  border-color: #dc3545;
}

.input-focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.form-input-modern:focus + .input-focus-border {
  width: 100%;
}

/* Password Toggle */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: var(--transition);
}

.password-toggle:hover {
  color: var(--primary-green);
}

/* Input Help */
.input-help {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-left: 3px solid #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.input-help i {
  margin-right: 0.5rem;
  color: #ffd700;
  font-size: 0.9rem;
}

/* Error Messages */
.error-message {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  color: #ffe4e1;
  font-size: 0.8rem;
  background: rgba(220, 53, 69, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-left: 3px solid #ff6b6b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.error-message i {
  margin-right: 0.5rem;
  color: #ff6b6b;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Checkbox */
.remember-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.remember-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  margin-right: 0.5rem;
  position: relative;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #ffd700;
  border-color: #ffd700;
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark::after {
  display: block;
}

/* Forgot Link */
.forgot-link {
  color: #ffd700;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.forgot-link:hover {
  color: #08a355;
  background: #ffd700;
  text-decoration: none;
  transform: translateY(-1px);
  text-shadow: none;
}

/* Login Button */
.login-btn {
  width: 100%;
  height: 55px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.btn-text {
  transition: var(--transition);
}

.btn-loading {
  position: absolute;
  display: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-icon {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.login-btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Login Card Footer */
.login-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

.help-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 1rem;
  font-weight: 600;
  padding: 0.75rem;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(40, 167, 69, 0.3);
  text-shadow: none;
}

.help-text i {
  margin-right: 0.75rem;
  color: #28a745;
  font-size: 1.1rem;
}

.contact-info {
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.contact-item i {
  margin-right: 0.5rem;
  color: #28a745;
  font-size: 0.9rem;
}

.copyright-text {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
  text-shadow: none;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.loading-content {
  text-align: center;
  color: var(--text-primary);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-green);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-grid {
    grid-template-columns: 1fr;
  }

  .university-section {
    order: 2;
    padding: 1.5rem;
    min-height: auto;
  }

  .login-section {
    order: 1;
    padding: 2rem 1rem;
  }

  .university-content {
    max-width: 600px;
  }

  .features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .feature-item {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .modern-login-container {
    padding: 0;
  }

  .login-section {
    padding: 1rem;
  }

  .login-card {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .university-section {
    padding: 1rem;
  }

  .university-name {
    font-size: 2rem;
  }

  .features-showcase {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 0.75rem;
  }

  .login-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .login-form-container {
    padding: 0 1.5rem 1rem;
  }

  .login-card-footer {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .university-name {
    font-size: 1.6rem;
  }

  .university-tagline {
    font-size: 1rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .contact-item-modern {
    font-size: 0.8rem;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .login-subtitle {
    font-size: 0.9rem;
  }

  .form-options {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .forgot-link {
    text-align: center;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .login-card {
    background: #064a28 !important; /* Darker green for dark mode */
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.3);
  }

  .form-input-modern {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    border-color: rgba(255, 215, 0, 0.5);
  }

  .login-card-footer {
    background: rgba(255, 255, 255, 0.08) !important;
    border-top-color: rgba(255, 215, 0, 0.3);
  }

  .login-header {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom-color: rgba(255, 215, 0, 0.3);
  }

  .login-form-container {
    background: rgba(255, 255, 255, 0.05) !important;
  }

  .form-options {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 215, 0, 0.3);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .login-card {
    background: white !important;
    border: 3px solid #000 !important;
    color: #000 !important;
  }

  .form-input-modern {
    background: white !important;
    border: 2px solid #000 !important;
    color: #000 !important;
  }

  .login-btn {
    background: #000 !important;
    color: white !important;
    border: 2px solid #000 !important;
  }

  .form-label-modern {
    color: #000 !important;
    font-weight: 800 !important;
  }

  .login-title {
    color: #000 !important;
    background: none !important;
    -webkit-text-fill-color: #000 !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Management */
.login-btn:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

.form-input-modern:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: -2px;
}

/* Print Styles */
@media print {
  .modern-login-container {
    background: white !important;
  }

  .bg-animation,
  .floating-shapes {
    display: none !important;
  }

  .university-section {
    background: none !important;
  }
}
