/* Standalone Auth Pages Premium CSS */
:root {
  --premium-ink: #18221d;
  --premium-muted: #5e6b63;
  --premium-paper: #e2e7df;
  --premium-line: #d2d8cf;
  --premium-green: #164d3b;
  --premium-green-dark: #0d3428;
  --premium-lime: #dce8ad;
  --premium-orange: #e89a38;
  --premium-white: #ffffff;
  --premium-surface: #ffffff;
}

body.standalone-auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--premium-paper);
  color: var(--premium-ink);
  font-family: "DM Sans", sans-serif;
  display: flex;
  flex-direction: column;
}

/* Header */
.auth-header {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.auth-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.auth-logo span {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--premium-ink);
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--premium-green);
  text-decoration: none;
  padding: .45rem .85rem;
  background: rgba(22, 77, 59, 0.08);
  border-radius: 10px;
  transition: all .2s ease;
}

.auth-back-link:hover {
  background: var(--premium-green);
  color: #ffffff;
}

/* Standalone Main Wrapper */
.auth-standalone-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 2.5rem;
}

.auth-wrapper-card {
  max-width: 1040px;
  width: 100%;
  background: var(--premium-surface);
  border: 1px solid var(--premium-line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(24, 34, 29, 0.06);
}

.auth-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.auth-brand-side {
  background: linear-gradient(135deg, var(--premium-green, #164d3b) 0%, var(--premium-green-dark, #0d3428) 100%);
  color: #ffffff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand-kicker {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--premium-lime, #dce8ad);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .8rem;
}

.auth-brand-side h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.auth-brand-side p {
  font-size: .95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 2rem;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.auth-feature-item i {
  color: var(--premium-lime, #dce8ad);
  font-size: 1.1rem;
}

.auth-form-side {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--premium-ink, #18221d);
  margin-bottom: .3rem;
}

.auth-subtitle {
  font-size: .9rem;
  color: var(--premium-muted, #5e6b63);
  margin-bottom: 1.5rem;
}

.auth-tutorial-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  margin: -.55rem 0 1.35rem;
  color: var(--premium-green, #164d3b);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-tutorial-link i {
  color: #d62828;
  font-size: 1rem;
}

.auth-tutorial-link:hover {
  color: var(--premium-green-dark, #0d3428);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-form-group {
  margin-bottom: 1.2rem;
}

.auth-form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--premium-muted, #5e6b63);
  margin-bottom: .4rem;
}

.auth-form-group input {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 10px;
  background: #f7f9f5;
  color: var(--premium-ink, #18221d);
  font-size: .92rem;
  outline: none;
  transition: all .2s ease;
}

.auth-form-group input:focus {
  border-color: var(--premium-green, #164d3b);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 77, 59, 0.1);
}

.btn-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .8rem 1.2rem;
  background: var(--premium-green, #164d3b);
  color: #ffffff;
  font-weight: 800;
  font-size: .95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease;
  margin-top: .5rem;
}

.btn-auth-submit:hover {
  background: var(--premium-green-dark, #0d3428);
}

.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .7rem 1.2rem;
  background: #f7f9f5;
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 12px;
  color: var(--premium-ink, #18221d);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s ease;
  margin-top: .8rem;
}

.btn-google-auth:hover {
  background: #ffffff;
  border-color: var(--premium-green, #164d3b);
  color: var(--premium-green, #164d3b);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--premium-muted, #5e6b63);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 1.2rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--premium-line, #d2d8cf);
}

.auth-divider span {
  padding: 0 .8rem;
}

.auth-footer-link {
  text-align: center;
  font-size: .88rem;
  color: var(--premium-muted, #5e6b63);
  margin-top: 1.5rem;
}

.auth-footer-link a {
  color: var(--premium-green, #164d3b);
  font-weight: 700;
  text-decoration: underline;
}

.feedback-msg {
  font-size: .8rem;
  font-weight: 600;
  margin-top: .25rem;
}

/* OTP Inputs */
.otp-container {
  display: flex;
  justify-content: space-between;
  gap: clamp(.35rem, 2vw, .55rem);
  margin: 1.2rem 0 1.5rem;
}

.otp-box {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 48px;
  height: 54px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 12px;
  background: #f7f9f5;
  color: var(--premium-ink, #18221d);
  outline: none;
  transition: all .2s ease;
}

.otp-box:focus {
  border-color: var(--premium-green, #164d3b);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 77, 59, 0.15);
}

/* Password Recovery Step Navigation */
.auth-step-nav {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.auth-step-item {
  background: #f7f9f5;
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 12px;
  color: var(--premium-muted, #5e6b63);
  text-align: center;
  padding: .6rem .4rem;
  transition: all .2s ease;
}

.auth-step-index {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .78rem;
  background: rgba(22, 77, 59, 0.1);
  color: var(--premium-green, #164d3b);
}

.auth-step-label {
  margin-top: .3rem;
  display: block;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.auth-step-item.active {
  background: var(--premium-green, #164d3b);
  border-color: var(--premium-green, #164d3b);
  color: #ffffff;
}

.auth-step-item.active .auth-step-index {
  background: var(--premium-lime, #dce8ad);
  color: var(--premium-ink, #18221d);
}

/* Footer */
.auth-footer {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .84rem;
  color: var(--premium-muted);
  border-top: 1px solid var(--premium-line);
}

.auth-footer-nav {
  display: flex;
  gap: 1.2rem;
}

.auth-footer-nav a {
  color: var(--premium-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.auth-footer-nav a:hover {
  color: var(--premium-green);
}

@media (max-width: 991px) {
  .auth-layout-grid {
    grid-template-columns: 1fr;
  }
  .auth-brand-side {
    padding: 2rem 1.8rem;
  }
  .auth-form-side {
    padding: 2rem 1.8rem;
  }
}

@media (max-width: 480px) {
  .auth-form-side {
    padding: 1.5rem 1rem;
  }
  .otp-container {
    gap: clamp(.25rem, 1.8vw, .4rem);
  }
  .otp-box {
    max-width: 42px;
    height: 48px;
    font-size: 1.2rem;
    border-radius: 10px;
  }
}
