/* Auth pages — mirrors shoop AuthShopLayout */

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.auth-page__header {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.auth-page__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

@media (min-width: 1025px) {
  .auth-page__header-inner {
    height: 4rem;
  }
}

.auth-page__back {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.auth-page__back:hover {
  color: #000;
}

.auth-page__brand {
  text-decoration: none;
}

.auth-page__spacer {
  width: 5rem;
}

.auth-page__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.auth-page__footer {
  flex-shrink: 0;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.45);
}

.auth-card {
  width: 100%;
  max-width: 26.25rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .auth-card {
    padding: 2rem;
  }
}

.auth-title {
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}

@media (min-width: 768px) {
  .auth-title {
    font-size: 1.5rem;
  }
}

.auth-subtitle {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

.auth-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .auth-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
}

.auth-field-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  background: #f8f8f8;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #000;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.auth-field-input:focus {
  border-color: rgba(0, 0, 0, 0.2);
  background: #fff;
}

.auth-field-input--otp {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 1.125rem;
  font-weight: 700;
}

.auth-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.auth-primary-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

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

.auth-divider {
  position: relative;
  margin: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-50%);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.auth-social-btn--line {
  background: #06c755;
  color: #fff;
}

.auth-social-btn--line:hover {
  background: #05b34c;
}

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

.auth-notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #f2f2f2;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

.auth-alert {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
}

.auth-alert--success {
  border-color: rgba(0, 0, 0, 0.1);
  background: #f2f2f2;
  color: rgba(0, 0, 0, 0.7);
}

.auth-alert--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.auth-footer-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.55);
}

.auth-footer-link a {
  font-weight: 600;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-text-btn {
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.auth-text-btn:hover {
  color: #000;
}

.auth-inline-actions {
  margin-top: 0.75rem;
  text-align: center;
}
