/*
 * Author: AZEITS
 * Date: 2025
 * Description: Shared styles for login, OTP verification, and sign-up pages
 */
@import url('styles.css');

/* Auth Container Styles */
.auth-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-bgsecondary);
  background-image: radial-gradient(#c3c3c3 0.6000000000000001px, var(--bg-bgsecondary) 0.6000000000000001px);
  background-size: 12px 12px;
}

[data-bs-theme="dark"] {
  .auth-container {
    background-image: radial-gradient(#ffffff3a 0.6000000000000001px, var(--bg-bgsecondary) 0.6000000000000001px);
  }
}

.auth-content {
  width: 100%;
  max-width: 450px;
  margin: auto;
  padding: 2rem;
}

.auth-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-logo-icon {
  width: 60px;
  aspect-ratio: 1 / 1;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Form Styles */
.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--color-primary-rgba-20);
}

.form-input.error {
  border-color: var(--red);
}

.form-error {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Button Styles */
.auth-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background-color: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn:hover {
  background-color: var(--primary-dark);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-btn-secondary {
  background-color: var(--secondary);
  color: var(--text-primary);
}

.auth-btn-secondary:hover {
  background-color: #e5e7eb;
}

/* Links */
.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* OTP Input Styles */
.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.otp-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
}

.otp-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--color-primary-rgba-20);
}

.resend-otp {
  text-align: center;
  margin: 1rem 0;
}

.timer {
  font-weight: 600;
  color: var(--text-primary);
}

/* Loading Indicator */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 576px) {
  .auth-content {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .otp-inputs {
    gap: 0.25rem;
  }

  .otp-input {
    width: 40px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (min-width: 992px) {
  .auth-content {
    max-width: 500px;
  }
}