/* ═══════════════════════════════════════════
   AUTH PAGES (LOGIN & REGISTER)
═══════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  background: var(--cream);
  overflow-x: hidden;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Left: Visual ── */
.auth-visual {
  position: relative;
  background: linear-gradient(155deg, #0f1a18 0%, #1a3836 40%, #145048 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  overflow: hidden;
}

.auth-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.auth-bg-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(31, 138, 126, 0.15);
  top: -100px;
  right: -80px;
}

.auth-bg-orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(201, 169, 110, 0.1);
  bottom: -60px;
  left: -50px;
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 480px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #fff;
}

.auth-logo .pearl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff 0%, var(--gold-light) 35%, var(--gold) 65%, #9a7530 100%);
  box-shadow: 0 3px 14px rgba(201, 169, 110, 0.45), inset 0 1px 4px rgba(255, 255, 255, 0.7);
}

.auth-visual-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-visual-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 40px;
}

.auth-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 20px;
  opacity: 0.9;
  filter: brightness(1.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Right: Form ── */
.auth-form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--cream);
}

.auth-form-container {
  width: 100%;
  max-width: 480px;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.auth-header p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-header a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.auth-header a:hover {
  color: var(--teal-light);
  text-decoration: underline;
}

/* Form Styles */
.auth-form {
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1.5px solid rgba(31, 138, 126, 0.15);
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 138, 126, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.form-icon {
  position: absolute;
  right: 16px;
  top: 42px;
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0.5;
}

.toggle-password {
  position: absolute;
  left: 16px;
  top: 42px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  opacity: 1;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
}

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

.forgot-link {
  font-size: 0.85rem;
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-link:hover {
  color: var(--teal-light);
  text-decoration: underline;
}

.btn-auth-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(31, 138, 126, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
  font-family: inherit;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 38px rgba(31, 138, 126, 0.45);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

.auth-divider {
  text-align: center;
  margin: 32px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(31, 138, 126, 0.15);
}

.auth-divider span {
  position: relative;
  background: var(--cream);
  padding: 0 16px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-social {
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid rgba(31, 138, 126, 0.15);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.25s;
  font-family: inherit;
}

.btn-social:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(31, 138, 126, 0.15);
}

.btn-social span {
  font-size: 1.1rem;
}

.auth-footer {
  text-align: center;
}

.back-home {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-home:hover {
  color: var(--teal);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  
  .auth-visual {
    min-height: 300px;
    padding: 40px;
  }
  
  .auth-visual-content h2 {
    font-size: 1.8rem;
  }
  
  .auth-image {
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .auth-form-wrapper {
    padding: 32px 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .auth-social {
    grid-template-columns: 1fr;
  }
  
  .auth-visual {
    min-height: 250px;
    padding: 32px 24px;
  }
  
  .auth-visual-content h2 {
    font-size: 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 1.6rem;
  }
}

