/* Auth — Webshade orange theme */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0, 0, 0, 0.12), transparent 55%), radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.2), transparent 50%);
  z-index: 0;
}

.auth-page-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 28px 20px 32px;
  display: flex;
  flex-direction: column;
}

.auth-header {
  margin-bottom: 1.75rem;
}

.auth-logo-box {
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.auth-logo-box img {
  width: auto;
  height: auto;
  max-width: 88px;
  max-height: 88px;
  object-fit: contain;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 10px !important;
}

.auth-page-title {
  margin: 0;
  padding: 0 4px;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f1d7bc;
  text-align: left;
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-field-block {
  margin-bottom: 1rem;
}

/* Stacked input box — label inside top, like reference */
.auth-input-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px 16px 14px;
  min-height: 72px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-input-block:focus-within {
  border-color: rgba(241, 215, 188, 0.5);
  box-shadow: 0 0 0 3px rgba(241, 215, 188, 0.1);
}

.auth-input-block .auth-label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1d7bc;
  line-height: 1.2;
}

.auth-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.auth-input-row > i {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
  color: #f1d7bc;
}

.auth-input-row .auth-prefix {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.auth-input-row input {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
  line-height: 1.3;
}

.auth-input-row input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
  font-weight: 500;
}

/* Button: 40% width, high radius, centered — keep cream gradient from .main-sub-back-white */
.auth-action-group {
  margin-top: 1.35rem;
  text-align: center;
}

.auth-btn-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-btn-wrap .main-sub-back-white {
  width: 40% !important;
  min-width: 120px;
  margin: 0 !important;
  border-radius: 999px !important;
  display: block;
}

.auth-switch-text {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.auth-switch-text .auth-link-accent {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
}

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

.auth-page .main-spinner {
  border-top-color: #ef3723;
}
