:root {
  /* Ekiti State Theme Colors */
  --primary: #0b6623;           /* Green */
  --primary-dark: #084d19;      /* Darker Green */
  --primary-light: #e6ffe6;     /* Light Green Tint */
  --secondary: #d62828;         /* Red */
  --success: #4cc9a7;
  --warning: #f9a826;           /* Yellow */
  --error: #e63946;
  --dark: #1a1d29;
  --light: #fffdf2;
  --gray: #8b94a7;

  /* General UI Variables */
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #f6fff8 0%, #fffdf2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  color: var(--dark);
}

/* Background Animation */
.bg-animation {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #fffbe6);
  opacity: 0.7;
  filter: blur(40px);
  animation: float 20s infinite linear;
}

.floating-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: 5%;
  animation-delay: -5s;
  animation-direction: reverse;
}

.floating-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 80%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-20px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translateY(20px) rotate(240deg) scale(0.9);
  }
}

/* Main Container */
.login-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.login-container:hover {
  transform: translateY(-5px);
}

/* Brand Section */
.brand-section {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), var(--warning));
  color: white;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.brand-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA4MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgNjI1YzE1MCAxMDAgMzAwIDAgNDUwLTEyNWMxNTAtMTI1IDMwMCAxMjUgNDUwIDUwVjBIMHoiIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
  z-index: 0;
}

.brand-content {
  position: relative;
  z-index: 1;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: white;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
}

.brand-heading {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.brand-text {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.features {
  list-style: none;
  margin-top: 2rem;
}

.features li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.features i {
  margin-right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-info {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Form Section */
.form-section {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--secondary);
  font-size: 1rem;
}

.form-container {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
  font-size: 0.9rem;
}

.input-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #f8fafc;
}

.form-control:focus {
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(11, 102, 35, 0.15);
  outline: none;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  z-index: 2;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  z-index: 2;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input {
  accent-color: var(--primary);
}

.forgot-password {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.forgot-password:hover {
  color: var(--primary);
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(11, 102, 35, 0.4);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 102, 35, 0.5);
}

.btn-login:active {
  transform: translateY(0);
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--gray);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.divider span {
  padding: 0 1rem;
}

.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-btn {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.signup-link {
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary);
}

.signup-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideIn 0.5s ease forwards;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--success);
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid var(--warning);
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--error);
}

/* Responsive Design */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
    max-width: 600px;
    min-height: auto;
  }

  .brand-section {
    padding: 2rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }

  .form-section {
    padding: 2rem;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  }

  .brand-heading {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .login-wrapper {
    padding: 10px;
  }

  .login-container {
    width: 100%;
    margin: 0;
    border-radius: var(--border-radius);
  }

  .brand-section, .form-section {
    padding: 1.5rem;
  }

  .brand-heading {
    font-size: 1.75rem;
  }

  .form-header h2 {
    font-size: 1.75rem;
  }

  .social-login {
    flex-direction: column;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .logo-container {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 400px) {
  .brand-section, .form-section {
    padding: 1.25rem;
  }

  .brand-heading {
    font-size: 1.5rem;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }
}

/* Animation for form */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-container > * {
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}

.form-container > *:nth-child(1) { animation-delay: 0.1s; }
.form-container > *:nth-child(2) { animation-delay: 0.2s; }
.form-container > *:nth-child(3) { animation-delay: 0.3s; }
.form-container > *:nth-child(4) { animation-delay: 0.4s; }
.form-container > *:nth-child(5) { animation-delay: 0.5s; }
.form-container > *:nth-child(6) { animation-delay: 0.6s; }

/* Button loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.8;
}
