/* ============================================
   PuntoEdu - Login Styles v2.0
   Modern Glassmorphism Design
   ============================================ */

/* Reset & Variables */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  /* Semantic */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

/* Base Styles */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--gray-100);
  color: var(--gray-800);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.bg-mesh {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    var(--gray-100) 50%,
    var(--gray-200) 100%
  );
  z-index: 0;
  animation: meshShift 20s ease-in-out infinite;
}

@keyframes meshShift {
  0%,
  100% {
    background: linear-gradient(
      135deg,
      var(--gray-50) 0%,
      var(--gray-100) 50%,
      var(--gray-200) 100%
    );
  }
  33% {
    background: linear-gradient(
      135deg,
      var(--gray-100) 0%,
      var(--gray-50) 50%,
      var(--gray-100) 100%
    );
  }
  66% {
    background: linear-gradient(
      135deg,
      var(--gray-200) 0%,
      var(--gray-100) 50%,
      var(--gray-50) 100%
    );
  }
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
  z-index: 0;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(139, 92, 246, 0.1)
  );
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.1),
    rgba(99, 102, 241, 0.08)
  );
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.08),
    rgba(244, 63, 94, 0.05)
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  opacity: 0.3;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}

/* Floating Particles */
.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(71, 85, 105, 0.4);
  border-radius: 50%;
  animation: rise 15s linear infinite;
}

.particles span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}
.particles span:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
  animation-duration: 14s;
}
.particles span:nth-child(3) {
  left: 30%;
  animation-delay: 4s;
  animation-duration: 11s;
}
.particles span:nth-child(4) {
  left: 40%;
  animation-delay: 1s;
  animation-duration: 16s;
}
.particles span:nth-child(5) {
  left: 50%;
  animation-delay: 3s;
  animation-duration: 13s;
}
.particles span:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
  animation-duration: 15s;
}
.particles span:nth-child(7) {
  left: 70%;
  animation-delay: 2.5s;
  animation-duration: 12s;
}
.particles span:nth-child(8) {
  left: 80%;
  animation-delay: 1.5s;
  animation-duration: 14s;
}
.particles span:nth-child(9) {
  left: 85%;
  animation-delay: 4.5s;
  animation-duration: 11s;
}
.particles span:nth-child(10) {
  left: 95%;
  animation-delay: 0.5s;
  animation-duration: 16s;
}
.particles span:nth-child(11) {
  left: 5%;
  animation-delay: 1s;
  animation-duration: 13s;
}
.particles span:nth-child(12) {
  left: 15%;
  animation-delay: 3.5s;
  animation-duration: 15s;
}
.particles span:nth-child(13) {
  left: 25%;
  animation-delay: 0.8s;
  animation-duration: 12s;
}
.particles span:nth-child(14) {
  left: 35%;
  animation-delay: 2.2s;
  animation-duration: 14s;
}
.particles span:nth-child(15) {
  left: 45%;
  animation-delay: 4.2s;
  animation-duration: 11s;
}
.particles span:nth-child(16) {
  left: 55%;
  animation-delay: 1.8s;
  animation-duration: 16s;
}
.particles span:nth-child(17) {
  left: 65%;
  animation-delay: 3.2s;
  animation-duration: 13s;
}
.particles span:nth-child(18) {
  left: 75%;
  animation-delay: 0.3s;
  animation-duration: 15s;
}
.particles span:nth-child(19) {
  left: 88%;
  animation-delay: 2.8s;
  animation-duration: 12s;
}
.particles span:nth-child(20) {
  left: 92%;
  animation-delay: 4.8s;
  animation-duration: 14s;
}
.particles span:nth-child(21) {
  left: 8%;
  animation-delay: 1.2s;
  animation-duration: 11s;
}
.particles span:nth-child(22) {
  left: 22%;
  animation-delay: 3.8s;
  animation-duration: 16s;
}
.particles span:nth-child(23) {
  left: 48%;
  animation-delay: 0.6s;
  animation-duration: 13s;
}
.particles span:nth-child(24) {
  left: 72%;
  animation-delay: 2.5s;
  animation-duration: 15s;
}
.particles span:nth-child(25) {
  left: 98%;
  animation-delay: 4s;
  animation-duration: 12s;
}

@keyframes rise {
  0% {
    bottom: -10px;
    opacity: 0;
    transform: translateX(0) scale(0);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    bottom: 100%;
    opacity: 0;
    transform: translateX(50px) scale(0.5);
  }
}

/* Main Container */
.login-main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Login Card */
.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 20px 25px -5px rgba(0, 0, 0, 0.05);
  animation: cardAppear 0.8s var(--transition-bounce);
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Left Panel - Brand */
.login-brand {
  background: linear-gradient(
    135deg,
    var(--primary-500) 0%,
    var(--primary-600) 50%,
    var(--primary-700) 100%
  );
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(0, 0, 0, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 1;
}

/* Brand Header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.brand-logo {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
}

.brand-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 0.25rem;
}

/* Brand Hero */
.brand-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-illustration {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
}

.illustration-circle {
  position: absolute;
  inset: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 8px rgba(255, 255, 255, 0.1);
  animation: pulse 3s ease-in-out infinite;
}

.illustration-circle i {
  font-size: 3rem;
  color: var(--white);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
      0 0 0 8px rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2),
      0 0 0 12px rgba(255, 255, 255, 0.15);
  }
}

.illustration-orbit {
  position: absolute;
  inset: 0;
  animation: orbit 20s linear infinite;
}

.illustration-orbit span {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-orbit span i {
  font-size: 1rem;
  color: var(--white);
}

.illustration-orbit span:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.illustration-orbit span:nth-child(2) {
  bottom: 10px;
  right: 0;
}

.illustration-orbit span:nth-child(3) {
  bottom: 10px;
  left: 0;
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.brand-hero h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.brand-hero p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Brand Features */
.brand-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.1rem;
  color: var(--white);
}

.feature-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.feature-info span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Brand Footer */
.brand-footer {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* Right Panel - Form */
.login-form-section {
  background: var(--white);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-wrapper {
  width: 100%;
  max-width: 380px;
}

/* Mobile Brand */
.mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.mobile-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mobile-brand span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.form-header p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* Form Steps */
.form-step {
  display: none;
  animation: stepIn 0.4s ease-out;
}

.form-step.active {
  display: block;
}

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

/* Input Groups */
.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.625rem;
}

.input-group label i {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--transition-base);
}

.input-wrapper input::placeholder {
  color: var(--gray-400);
}

.input-wrapper input:hover {
  border-color: var(--gray-300);
}

.input-wrapper input:focus {
  background: var(--white);
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-wrapper input.error {
  border-color: var(--error);
  background: #fef2f2;
}

.input-wrapper input.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-wrapper.has-toggle input {
  padding-right: 3rem;
}

/* Focus Line Animation */
.input-focus {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-violet));
  border-radius: var(--radius-full);
  transition: all var(--transition-slow);
  transform: translateX(-50%);
}

.input-wrapper input:focus ~ .input-focus {
  width: calc(100% - 4px);
}

/* Toggle Password Button */
.btn-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--gray-400);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-toggle:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* User Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
}

.user-badge:hover {
  border-color: var(--primary-200);
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-violet));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.user-avatar i {
  font-size: 1.25rem;
  color: var(--white);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.125rem;
}

.user-email {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-change {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--primary-500);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-change:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.9375rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

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

.btn-primary:disabled {
  background: var(--gray-300);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-primary span,
.btn-primary i {
  position: relative;
  z-index: 1;
}

.btn-login {
  margin-top: 0.5rem;
}

/* Forgot Link */
.forgot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.forgot-link:hover {
  color: var(--primary-500);
}

.forgot-link i {
  font-size: 0.9rem;
}

/* Error Alert */
.error-alert {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  animation: shake 0.5s ease-in-out;
}

.error-alert.show {
  display: flex;
}

.error-alert > i {
  font-size: 1.125rem;
  color: var(--error);
  flex-shrink: 0;
}

.error-alert span {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #b91c1c;
}

.error-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: #b91c1c;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.error-close:hover {
  background: rgba(185, 28, 28, 0.1);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

/* Form Footer */
.form-footer {
  margin-top: 2.5rem;
  text-align: center;
}

.form-footer p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Loading Modal */
.loading-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loading-modal.show {
  display: flex;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
}

.loader-spinner svg {
  width: 100%;
  height: 100%;
  animation: rotate 1.5s linear infinite;
}

.loader-spinner circle {
  stroke: var(--primary-500);
  stroke-linecap: round;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.loader-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

  .login-brand {
    display: none;
  }

  .login-form-section {
    padding: 2.5rem 2rem;
  }

  .mobile-brand {
    display: flex;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
    align-items: stretch;
  }

  .login-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .login-card {
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
    border: none;
  }

  .login-form-section {
    padding: 2rem 1.5rem;
    min-height: 100vh;
  }

  .form-header h2 {
    font-size: 1.625rem;
  }

  .form-wrapper {
    max-width: 100%;
  }
}

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