/* Authentication Pages Styles */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 100px 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);
}

.auth-container {
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 3rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 10px 50px rgba(0, 217, 255, 0.3);
  z-index: 1;
  backdrop-filter: blur(10px);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-logo img {
  height: 5rem;
  width: auto;
  filter: drop-shadow(0 0 15px var(--primary-color));
  animation: authLogoPulse 2s ease-in-out infinite;
}

@keyframes authLogoPulse {
  0%, 100% { 
    filter: drop-shadow(0 0 15px var(--primary-color));
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 25px var(--primary-color));
    transform: scale(1.05);
  }
}

.auth-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.auth-header p {
  color: #cccccc;
  font-size: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-radius: 10px;
  padding: 1rem;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.form-group input::placeholder {
  color: #666;
}

.error-message {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid #ff4444;
  border-radius: 10px;
  padding: 1rem;
  color: #ff4444;
  font-size: 0.9rem;
  display: none;
}

.error-message.show {
  display: block;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.btn-auth {
  background: linear-gradient(135deg, var(--primary-color), #0099cc);
  color: var(--bg-dark);
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.btn-auth:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
}

.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #666;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 217, 255, 0.2);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  color: #cccccc;
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.auth-footer a:hover {
  color: var(--accent-color);
}

.password-toggle {
  position: relative;
}

.password-toggle input {
  padding-right: 3rem;
}

.toggle-password-btn {
  position: absolute;
  right: 0.75rem;
  top: calc(0.95rem * 1.5 + 0.5rem + 1rem + 0.5rem);
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all 0.3s;
  z-index: 10;
}

.toggle-password-btn svg {
  width: 20px;
  height: 20px;
}

.toggle-password-btn:hover {
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.toggle-password-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Loading Spinner */
.btn-auth.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid var(--bg-dark);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
  .auth-container {
    padding: 2rem 1.5rem;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }
}

