/* ════════════════════════════════════════════
   AUTH PAGES
   ════════════════════════════════════════════ */

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 65px);
  padding: 40px 20px;
}

.auth-panel {
  background: #1a1a1a;
  border: 0.5px solid #c9a84c44;
  border-radius: 8px;
  padding: 48px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: #0a0a0a;
  border: 0.5px solid #c9a84c44;
  border-radius: 4px;
  color: #f5f0e8;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder {
  color: #666;
}

.form-input:focus {
  outline: none;
  border-color: #c9a84c;
  background: #0a0a0a;
  box-shadow: 0 0 0 3px #c9a84c11;
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.forgot-password {
  font-size: 12px;
  color: #c9a84c;
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-end;
}

.forgot-password:hover {
  color: #d4b857;
  text-decoration: underline;
}

.auth-error,
.auth-success {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
  background: rgba(255, 68, 68, 0.67);
  border-radius: 4px;
  color: #ffe6e6;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-success {
  background: rgba(52, 168, 83, 0.16);
  border: 0.5px solid #34a853;
  color: #d8f0d8;
}

.auth-message--visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-message--fadeout {
  opacity: 0;
  transform: translateY(-8px);
}

.auth-error[hidden], .auth-success[hidden] {
  display: none;
}

.auth-reset-section {
  margin-top: 20px;
  padding: 20px;
  border: 0.5px solid #c9a84c22;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.05);
}

.auth-reset-text {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 16px;
  line-height: 1.6;
}

.auth-btn {
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #666;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: #c9a84c44;
}

.auth-divider span {
  padding: 0 12px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  gap: 10px;
  background: transparent;
  border: 0.5px solid #c9a84c44;
  border-radius: 4px;
  color: #f5f0e8;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-google:hover {
  border-color: #c9a84c;
  background: #c9a84c0d;
}

.btn-google:active {
  background: #c9a84c1a;
}

.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 24px;
}

.auth-link {
  color: #c9a84c;
  text-decoration: none;
  transition: color 0.2s;
}

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

.auth-loading {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  animation: loading 1.4s infinite;
}

@keyframes loading {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .auth-panel {
    padding: 32px 24px;
  }

  .auth-title {
    font-size: 24px;
  }

  .form-input {
    padding: 10px 14px;
    font-size: 13px;
  }

  .btn-google {
    width: 100%;
  }
}
