/* ===== AUTH PRO — CLEAN SELLING DESIGN ===== */

/* ---- Page layout ---- */
.auth-pro-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Left: Branding panel ---- */
.auth-pro-brand {
  background: #0d0d3b;
  background: linear-gradient(175deg, rgb(12, 7, 38) 0%, rgb(0, 0, 21) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-pro-brand::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 255, 229, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.auth-pro-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(141, 80, 240, 0.055) 0%, transparent 70%);
  pointer-events: none;
}

.auth-pro-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.auth-pro-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #e6edf3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 3rem;
}

.auth-pro-brand-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #cb7702;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.auth-pro-brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-pro-brand-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  color: rgba(192,192,192, .5);
}

.auth-pro-brand-list li i {
  color: #FFD700;
  font-size: 1.25rem;
  font-weight: bold;
}

/* ---- Right: Form panel ---- */
.auth-pro-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
}

.auth-pro-form-card {
  width: 100%;
  max-width: 420px;
}

/* ---- Form header ---- */
.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.auth-form-header p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

/* ---- Error boxes ---- */
.auth-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #991b1b;
  font-size: 0.85rem;
}

.auth-error-box i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #ef4444;
  font-size: 1.1rem;
}

.auth-error-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-error-box li {
  margin-bottom: 0.15rem;
}

.auth-flash-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-flash-error i {
  color: #ef4444;
}

.auth-flash-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-flash-success i {
  color: #22c55e;
}

/* ---- Form fields ---- */
.auth-pro-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.auth-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  transition: all 0.15s;
  outline: none;
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-input:hover:not(:focus) {
  border-color: #d1d5db;
}

/* ---- Submit button ---- */
.auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.8rem;
  background: rgb(21, 13, 59);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 0.5rem;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
}

.auth-submit-btn:hover {
  background: #cb7702;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

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

.auth-submit-btn i {
  font-size: 1.1rem;
  transition: transform 0.15s;
}

.auth-submit-btn:hover i {
  transform: translateX(2px);
}

/* ---- Divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f3f4f6;
}

.auth-divider span {
  font-size: 0.8rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ---- Switch link ---- */
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.auth-switch a {
  color: #271fb0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.auth-switch a:hover {
  color: #cb7702;
  text-decoration: none;
}

/* ---- Brand dot ---- */
.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #cb7702;
  border-radius: 50%;
  vertical-align: middle;
}

.back {
  display: none;
  margin-bottom: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .back {
    display: flex;
  }
  .auth-pro-page {
    grid-template-columns: 1fr;
  }

  .auth-pro-brand {
    display: none;
  }

  .auth-pro-form-side {
    padding: 1.5rem;
  }

  .auth-pro-form-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-pro-form-side {
    padding: 1.25rem;
  }

  .auth-form-header h1 {
    font-size: 1.5rem;
  }

  .auth-form-header p {
    font-size: 0.875rem;
  }
}
