/* ============================================================
   AUTH / LOGIN PAGE
   Animations, glassmorphism and login layout
   ============================================================ */

body.login-page {
  margin: 0;
  padding: 2rem 0;
  min-height: 100vh;
  background: var(--vm-gradient-login);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-box {
  width: 420px;
  margin: auto 0;
}

.login-logo {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

.login-logo b {
  font-weight: 700;
  color: #ffffff !important;
}

/* Glassmorphism base classes */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--vm-radius-2xl);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 2.5rem 2.5rem 2rem;
  animation: slideUpFade 0.8s var(--vm-ease);
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Transparent Modern Inputs */
.glass-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-radius: 10px !important;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2) !important;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.glass-input:-webkit-autofill,
.glass-input:-webkit-autofill:hover,
.glass-input:-webkit-autofill:focus,
.glass-input:-webkit-autofill:active {
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: white;
}

.glass-icon-wrapper {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-right: none !important;
  color: #fff !important;
  border-radius: 10px 0 0 10px !important;
}

.glass-input.form-control {
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
  padding-left: 12px !important;
}

/* Connected Inputs */
.glass-input-right-connected {
  border-right: none !important;
  border-radius: 0 !important;
}

.glass-input-left-connected {
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.twofa-input {
  font-size: 2rem !important;
  letter-spacing: 0.8rem !important;
  text-align: center !important;
  padding: 12px 15px !important;
  font-weight: 700 !important;
}

/* Buttons */
.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--vm-radius-full);
  color: white;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: white;
}

.btn-glass:active {
  transform: translateY(1px);
}

.btn-glass-alt {
  background: var(--vm-gradient-success);
  border: none;
  border-radius: var(--vm-radius-full);
  color: white;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
}

.btn-glass-alt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 239, 125, 0.6);
  color: white;
}

/* Auth Alerts */
.alert-glass-danger {
  background: rgba(220, 53, 69, 0.8);
  border: none;
  color: white;
}

.alert-glass-success {
  background: rgba(40, 167, 69, 0.8);
  border: none;
  color: white;
}

/* Animated Auth Icons */
.avatar-icon {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Fingerprint icon floating animation */
.icon-float {
  animation: iconFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
  display: inline-block;
}

@keyframes iconFloat {
  0%   { transform: translateY(0px) scale(1); }
  50%  { transform: translateY(-8px) scale(1.05); }
  100% { transform: translateY(0px) scale(1); }
}

.shield-icon {
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .login-box {
    width: 90%;
    max-width: 380px;
  }
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 15px 20px;
  min-height: 48px;
  min-width: 48px;
  clip: auto;
  margin: 0;
  background: #4f46e5;
  color: white;
  z-index: 9999;
  border-radius: 8px;
  display: inline-block;
}
