/* ============================================
   KWT Labs — Auth pages (login, signup, etc.)
   ============================================ */

.auth-body {
  background: #f5f7fa;
  min-height: 100vh;
}

.auth-body .site-header {
  position: relative;
  background: var(--white);
}

.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 1px);
  display: flex;
  align-items: stretch;
}

/* Split layout */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
}

.auth-brand {
  background: linear-gradient(145deg, #0a52cc 0%, #0F6FFF 45%, #3b82f6 100%);
  color: var(--white);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 61, 61, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand__content {
  position: relative;
  z-index: 1;
}

.auth-brand h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.auth-brand__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 420px;
}

.auth-brand__illus {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0;
  justify-content: center;
}

.auth-brand__icon-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
  min-width: 100px;
  flex: 1 1 100px;
  max-width: 120px;
  transition: transform 0.25s ease;
}

.auth-brand__icon-card:hover {
  transform: translateY(-4px);
}

.auth-brand__icon-card .icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  color: var(--white);
}

.auth-brand__icon-card span:last-child {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.auth-brand__trust {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.auth-brand__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.auth-brand__trust .icon {
  width: 18px;
  height: 18px;
  color: #86efac;
  flex-shrink: 0;
}

/* Form panel */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #f5f7fa;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  padding: 40px 36px;
  border: 1px solid var(--gray-200);
}

.auth-card--centered {
  margin: 48px auto;
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-card__sub {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.auth-form label .optional {
  font-weight: 400;
  color: var(--gray-400);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 111, 255, 0.12);
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
}

.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.auth-forgot {
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-submit {
  width: 100%;
  margin-bottom: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-social__btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.auth-social__btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.auth-social__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.auth-message {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.auth-message--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-message--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-message--info {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #bfdbfe;
}

/* Password requirements */
.password-reqs {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.password-reqs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.password-reqs li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
}

.password-reqs li.is-met {
  color: var(--success);
}

.password-reqs li.is-met::before {
  background: var(--success);
  border-color: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Signup benefits */
.auth-benefits {
  padding: 56px 24px 80px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.auth-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.auth-benefit-card {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: #f5f7fa;
  transition: box-shadow 0.2s, transform 0.2s;
}

.auth-benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.auth-benefit-card .icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-bottom: 12px;
}

.auth-benefit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.auth-benefit-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Verify / forgot centered */
.auth-single {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 80px;
}

.auth-verify-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.auth-verify-icon .icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.auth-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* Signup centered variant */
.auth-signup-wrap {
  padding: 48px 24px 0;
  background: #f5f7fa;
}

.auth-signup-wrap .auth-card {
  margin: 0 auto 0;
}

@media (max-width: 960px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    padding: 40px 28px;
    min-height: auto;
  }

  .auth-brand__illus {
    margin: 28px 0;
  }

  .auth-brand__trust {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 32px 20px 48px;
  }

  .auth-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .auth-brand__icon-card {
    min-width: 80px;
    padding: 14px 10px;
  }
}
