﻿/* ============================================
   Plantacles — Premium Auth Pages
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--home-cream, #FAF9F6);
}

.auth-panel-brand {
  display: none;
  flex: 1;
  position: relative;
  background: var(--home-forest, #1A3D2E);
  overflow: hidden;
}

@media (min-width: 992px) {
  .auth-panel-brand {
    display: flex;
    align-items: flex-end;
    padding: 3rem;
  }
}

.auth-panel-brand-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1596040896127-f0d49f5d9d2d?w=1200&h=1400&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.auth-panel-brand-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 400px;
}

.auth-panel-brand-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  display: block;
  color: #fff;
  text-decoration: none;
}

.auth-panel-brand-logo:hover {
  color: #fff;
  opacity: 0.9;
}

.auth-panel-brand h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.auth-panel-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  margin: 0;
}

.auth-panel-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

@media (min-width: 992px) {
  .auth-panel-form {
    max-width: 520px;
  }
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-form-logo-mobile {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--home-forest, #1A3D2E);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .auth-form-logo-mobile {
    display: none;
  }
}

.auth-form-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--home-forest, #1A3D2E);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.auth-form-subtitle {
  font-size: 0.9rem;
  color: var(--home-muted, #6B7280);
  margin-bottom: 2rem;
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--home-forest, #1A3D2E);
  margin-bottom: 0.4rem;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="tel"] {
  width: 100%;
  border: 1px solid var(--home-border, #E5E2DC);
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--home-forest, #1A3D2E);
  transition: border-color 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--home-forest, #1A3D2E);
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-field-hint {
  font-size: 0.75rem;
  color: var(--home-muted, #6B7280);
  margin-top: 0.35rem;
}

.auth-phone-wrap {
  display: flex;
}

.auth-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  background: var(--home-sage, #E8EDE4);
  border: 1px solid var(--home-border, #E5E2DC);
  border-right: none;
  font-size: 0.85rem;
  color: var(--home-muted, #6B7280);
  white-space: nowrap;
}

.auth-phone-wrap input {
  flex: 1;
  border-left: none !important;
}

.auth-forgot {
  text-align: right;
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}

.auth-forgot a {
  font-size: 0.8rem;
  color: var(--home-muted, #6B7280);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-forgot a:hover {
  color: var(--home-forest, #1A3D2E);
  border-bottom-color: var(--home-forest, #1A3D2E);
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.auth-check input {
  margin-top: 0.2rem;
  accent-color: var(--home-forest, #1A3D2E);
}

.auth-check label {
  font-size: 0.85rem;
  color: var(--home-muted, #6B7280);
  line-height: 1.45;
}

.auth-check label a {
  color: var(--home-forest, #1A3D2E);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-submit {
  width: 100%;
  background: var(--home-forest, #1A3D2E);
  color: #fff;
  border: 1px solid var(--home-forest, #1A3D2E);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  margin-bottom: 1.5rem;
}

.auth-submit:hover {
  background: transparent;
  color: var(--home-forest, #1A3D2E);
}

.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--home-muted, #6B7280);
}

.auth-switch a {
  color: var(--home-forest, #1A3D2E);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--home-forest, #1A3D2E);
}

.auth-switch a:hover {
  opacity: 0.75;
}

.auth-footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--home-border, #E5E2DC);
  text-align: center;
  font-size: 0.75rem;
  color: var(--home-muted, #6B7280);
}

.auth-alert {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.auth-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--home-muted, #6B7280);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.auth-back-home:hover {
  color: var(--home-forest, #1A3D2E);
}

/* Google Sign-In Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem 0;
  color: var(--home-muted, #6B7280);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--home-border, #E5E7EB);
}

/* Google Sign-In Button Container */
.g_id_signin {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 2rem 0;
}

/* Override Google Sign-In button styles */
.g_id_signin > div {
  margin: 0 auto;
}

div[role="button"] {
  cursor: pointer;
}
