/* ===================================================================
   KASIRKITA - AUTH STYLES (LOGIN & REGISTER SPLIT SCREEN)
   =================================================================== */

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background-color: var(--color-white);
}

/* Left Illustration Panel */
.auth-side-panel {
  background: radial-gradient(circle at 10% 20%, rgba(168, 213, 194, 0.45) 0%, rgba(213, 237, 227, 0.2) 60%),
              linear-gradient(145deg, var(--color-dark-green) 0%, #17382c 100%);
  color: var(--color-white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-side-panel::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 213, 194, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.auth-side-top {
  position: relative;
  z-index: 2;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 24px;
}

.auth-brand img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.auth-side-content {
  position: relative;
  z-index: 2;
  margin: 32px 0;
}

.auth-side-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #d5ede3;
  margin-bottom: 20px;
}

.auth-side-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.auth-side-desc {
  font-size: 1.05rem;
  color: #d5ede3;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Feature checklist in auth panel */
.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #f3faf7;
}

.auth-feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(90, 158, 130, 0.35);
  color: #a8d5c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Testimonial chip in auth panel */
.auth-testimonial-chip {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
}

.auth-chip-quote {
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.55;
  color: #eaf6f1;
  margin-bottom: 12px;
}

.auth-chip-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-chip-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #a8d5c2;
  color: var(--color-dark-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.auth-chip-info {
  font-size: 0.82rem;
}

.auth-chip-name {
  font-weight: 700;
  color: #ffffff;
}

.auth-chip-store {
  color: #a8d5c2;
}

/* Right Form Panel */
.auth-form-panel {
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.auth-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}

.auth-back-home:hover {
  color: var(--color-dark-green);
}

.auth-header {
  margin-bottom: 32px;
}

.auth-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Social Login */
.auth-social-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-social:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-mint);
}

.btn-social svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.auth-divider span {
  padding: 0 14px;
}

/* Form Groups */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.form-input-wrap input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: var(--color-white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input-wrap input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(90, 158, 130, 0.18);
}

.form-input-wrap input.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.12);
}

.form-error-msg {
  font-size: 0.78rem;
  color: var(--color-danger);
  font-weight: 500;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.btn-toggle-pwd {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.btn-toggle-pwd:hover {
  color: var(--color-dark-green);
}

/* Password Strength Indicator */
.pwd-strength-container {
  margin-top: 4px;
}

.pwd-strength-bars {
  display: flex;
  gap: 6px;
  height: 4px;
  margin-bottom: 4px;
}

.pwd-bar {
  flex: 1;
  background: #e2e8f0;
  border-radius: 2px;
  transition: background-color var(--transition-fast);
}

.pwd-strength-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Form Helper Row (Remember me & Forgot pwd) */
.form-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.custom-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: var(--color-text-main);
}

.custom-checkbox-wrap input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.forgot-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Terms Checkbox */
.terms-agreement {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.terms-agreement a {
  color: var(--color-accent);
  font-weight: 600;
}

.terms-agreement a:hover {
  text-decoration: underline;
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.auth-footer a {
  color: var(--color-accent);
  font-weight: 700;
}

.auth-footer a:hover {
  color: var(--color-dark-green);
  text-decoration: underline;
}

/* Responsive Auth */
@media (max-width: 991px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
  }

  .auth-side-panel {
    display: none; /* Mobile focuses purely on the form */
  }

  .auth-form-panel {
    padding: 40px 24px;
    max-width: 100%;
  }

  .auth-title {
    font-size: 1.85rem;
  }
}
