/* =========================
   LOGIN PAGE STYLES - CENTERED MINIMAL
========================= */
body.login-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e14 0%, #1a1f29 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle Background Effect */
.rgb-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 100, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 150, 0.05) 0%, transparent 50%);
  filter: blur(60px);
  opacity: 0.6;
}

/* Main Login Container - Centered */
.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  animation: fadeIn 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand Header - Centered */
.brand-header {
  text-align: center;
  margin-bottom: 60px;
  width: 100%;
}

.brand-logo {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  margin-bottom: 16px;
  display: block;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

/* Login Card - Centered */
.login-card {
  background: rgba(20, 25, 35, 0.7);
  backdrop-filter: blur(40px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  width: 100%;
  max-width: 400px;
}

/* Form Styling - Centered */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Input Groups - Centered */
.input-group {
  position: relative;
  width: 100%;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
}

.input-wrapper input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  transition: color 0.3s;
}

.input-wrapper input:focus + .input-icon {
  color: rgba(255, 255, 255, 0.8);
}

.password-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Submit Button - Centered */
.login-submit-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.login-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.login-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-text {
  font-weight: 600;
}

.btn-icon {
  font-size: 16px;
  opacity: 0.8;
}

/* Footer - Centered */
.login-footer {
  margin-top: 32px;
  text-align: center;
  width: 100%;
}

.security-notice {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.time-display {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 1px;
  margin-top: 16px;
}

/* Loading Overlay - Centered */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 35, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 20;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

/* Error Toast - Centered */
.error-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 75, 75, 0.1);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 100, 100, 0.2);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.error-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.error-icon {
  font-size: 18px;
  color: rgba(255, 100, 100, 0.9);
}

.error-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  line-height: 1.5;
}

/* Subtle Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%);
  margin: 32px 0;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 20px;
    max-width: 90%;
  }
  
  .login-card {
    padding: 40px 32px;
    max-width: 100%;
  }
  
  .brand-logo {
    font-size: 40px;
  }
  
  .brand-tagline {
    font-size: 13px;
  }
  
  .error-toast {
    min-width: 90%;
    max-width: 90%;
    bottom: 20px;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }
  
  .brand-logo {
    font-size: 36px;
  }
  
  .brand-tagline {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  
  .input-wrapper input {
    height: 50px;
    padding-left: 48px;
    font-size: 14px;
  }
  
  .login-submit-btn {
    height: 50px;
    font-size: 14px;
  }
}