/* TechOut Auth Pages
   Login, Signup, Forgot Password, Reset Password
   Luxury minimal aesthetic — centered card layout */

/* ============================================
   AUTH LAYOUT
   ============================================ */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--container-padding);
}

@media (max-width: 767px) {
  .auth-page {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    padding: var(--space-6) var(--container-padding);
    align-items: flex-start;
    padding-top: var(--space-8);
  }
}

/* ============================================
   AUTH CARD
   ============================================ */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
}

@media (max-width: 767px) {
  .auth-card {
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-md);
  }
}

/* ============================================
   AUTH HEADER
   ============================================ */
.auth-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-header__brand {
  font-family: 'Cinzel', serif;
  font-size: var(--text-2xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--black);
  margin-bottom: var(--space-3);
}

.auth-header__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--black);
  margin-bottom: var(--space-2);
}

.auth-header__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   AUTH FORM
   ============================================ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* ============================================
   FORM GROUPS
   ============================================ */
.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 767px) {
  .auth-form__row {
    grid-template-columns: 1fr;
  }
}

.auth-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.auth-form__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--black);
}

.auth-form__input {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  color: var(--black);
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
}

.auth-form__input::placeholder {
  color: var(--text-muted);
}

.auth-form__input:focus {
  outline: none;
  border-color: var(--black);
}

/* ============================================
   CHECKBOX / REMEMBER ME
   ============================================ */
.auth-form__check {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-form__check-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-form__check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
  cursor: pointer;
}

.auth-form__link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-form__link:hover {
  color: var(--black);
  opacity: 1;
}

/* ============================================
   AUTH BUTTON
   ============================================ */
.auth-form__btn {
  width: 100%;
  margin-top: var(--space-2);
}

/* ============================================
   DIVIDER
   ============================================ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-2) 0;
}

.auth-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.auth-divider__text {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
}

/* ============================================
   SOCIAL BUTTON
   ============================================ */
.auth-social-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.auth-social-btn:hover {
  background: var(--gray-100);
}

.auth-social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   AUTH FOOTER LINK
   ============================================ */
.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--black);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.auth-footer a:hover {
  opacity: 0.7;
  opacity: 1;
}

/* ============================================
   AUTH SUCCESS STATE
   ============================================ */
.auth-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  animation: authSuccessFadeIn 0.5s ease-out;
  width: 100%;
}

.auth-success.visible {
  display: flex;
}

@keyframes authSuccessFadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.auth-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--black);
  display: grid;
  place-items: center;
  animation: authSuccessPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: var(--space-8);
}

@keyframes authSuccessPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.auth-success__check {
  font-size: 30px;
  color: var(--white);
  line-height: 1;
  font-weight: 300;
}

.auth-success__title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.auth-success__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.6;
}

.auth-success__loader {
  width: 120px;
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.auth-success__loader-bar {
  width: 0%;
  height: 100%;
  background: var(--black);
  border-radius: 2px;
  animation: authSuccessProgress 1.4s ease-in-out forwards;
}

@keyframes authSuccessProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ============================================
   PASSWORD VISIBILITY TOGGLE
   ============================================ */
.auth-form__input-wrap {
  position: relative;
}

.auth-form__input-wrap .auth-form__input {
  padding-right: 48px;
}

.auth-form__eye-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.auth-form__eye-btn:hover {
  color: var(--black);
}

.auth-form__eye-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */
.auth-password-strength {
  display: flex;
  gap: 4px;
  margin-top: var(--space-1);
}

.auth-password-strength__bar {
  flex: 1;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  transition: background var(--transition-fast);
}

.auth-password-strength__bar.active {
  background: var(--gray-400);
}

.auth-password-strength__bar.strong {
  background: var(--black);
}
