/* Authentication Pages Styles */
/* Used for adminlogin.html and adminRegistration.html */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 2rem 1rem;
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

.auth-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 2rem;
  font-weight: 700;
  padding: 0.5rem;
  border: 2px solid var(--brand-primary);
}

.auth-logo img {
  max-width: 80px;
  height: auto;
  display: none;
}

.auth-logo.has-logo {
  background-color: transparent;
}

.auth-logo.has-logo img {
  display: block;
}

[data-theme="light"] .auth-logo.logo-placeholder {
  background-color: #f3f4f6;
}

[data-theme="dark"] .auth-logo.logo-placeholder {
  background-color: #2c2c2c;
}

.auth-title {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  background-color: var(--input-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.password-toggle {
  position: relative;
}

.password-toggle input {
  padding-right: 3rem;
}

.password-toggle-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.password-toggle-icon:hover {
  color: var(--text-primary);
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.form-check input {
  width: auto;
  margin-right: 0.5rem;
  cursor: pointer;
}

.form-check label {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-weight: 400;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--brand-primary);
  color: #000;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-submit:hover:not(:disabled) {
  background-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-color);
}

.auth-divider span {
  background-color: var(--bg-card);
  color: var(--text-muted);
  padding: 0 1rem;
  position: relative;
  font-size: 0.875rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-footer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.auth-footer a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

.forgot-password {
  text-align: right;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
}

.forgot-password a {
  color: var(--brand-primary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

.error-message {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.error-message.show {
  display: block;
  animation: slideDown 0.3s ease;
}

.success-message {
  background-color: rgba(25, 135, 84, 0.1);
  border: 1px solid rgba(25, 135, 84, 0.3);
  color: var(--success);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.success-message.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-toggle-auth {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.theme-toggle-auth:hover {
  background-color: var(--bg-hover);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: rotate(15deg);
}

.password-strength {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.strength-bar {
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.strength-bar-fill {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0;
}

.strength-bar-fill.weak {
  width: 33%;
  background-color: var(--danger);
}

.strength-bar-fill.medium {
  width: 66%;
  background-color: var(--warning);
}

.strength-bar-fill.strong {
  width: 100%;
  background-color: var(--success);
}

.strength-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 576px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-logo {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .theme-toggle-auth {
    width: 36px;
    height: 36px;
    top: 1rem;
    right: 1rem;
  }
}

/* Loading State */
.auth-submit .spinner-border {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}
