/* Login Page - Modern Design */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted)));
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, hsl(var(--primary) / 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, hsl(var(--accent) / 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  background: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid hsl(var(--border));
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card .card__header {
  text-align: center;
  padding: 2rem;
  background: var(--gradient-card);
  border-bottom: 1px solid hsl(var(--border));
}

.auth-card .card__body {
  padding: 2rem;
}

.auth-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(var(--card-foreground));
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0;
}

.auth-logo {
  margin: 0 auto 1.5rem;
  background: #020649eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(2, 6, 73, 0.15);
}

.auth-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.form-control {
  margin-bottom: 1rem;
}

.btn {
  margin-top: 0.5rem;
  width: 100%;
  background: var(--gradient-primary);
  border: none;
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn:active {
  transform: translateY(0);
}

.alert {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert--error {
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.3);
}

.alert--error::before {
  content: "⚠️";
  font-size: 1rem;
}

/* Account Disabled Popup */
.account-disabled-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.account-disabled-content {
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid hsl(var(--border));
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.account-disabled-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
}

.account-disabled-icon svg {
  width: 40px;
  height: 40px;
}

.account-disabled-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--card-foreground));
  margin-bottom: 0.75rem;
}

.account-disabled-message {
  font-size: 1.125rem;
  color: hsl(var(--destructive));
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.account-disabled-description {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Input Focus States */
.input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
  background-color: hsl(var(--background));
}

/* Button Loading State */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Responsive */
@media (max-width: 640px) {
  .auth-page {
    padding: 0.5rem;
  }
  
  .auth-card .card__header,
  .auth-card .card__body {
    padding: 1.5rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
}