/* ==========================================================================
   PickThePackage - Modern Authentication UI Stylesheet (auth.css)
   Split 2-Column Layout (Left Scenic Travel Visual, Right Auth Form)
   Strictly Class-Based Design System (Zero Inline Styles)
   ========================================================================== */

@import url('theme.css');

/* Base Page Body */
body.auth-page-body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-height, 80px);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #111827;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Auth Page Site Header Adaptation */
body.auth-page-body .site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   1. Split Layout Container
   -------------------------------------------------------------------------- */
.auth-main-layout {
  flex: 1;
  display: flex;
  align-items: stretch;
  background: #ffffff;
  min-height: calc(100vh - var(--header-height, 80px));
}

.auth-split-container {
  padding: 0;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  flex: 1;
  display: flex;
}

.auth-split-row {
  flex: 1;
  min-height: calc(100vh - var(--header-height, 80px));
}

/* Left Column - Travel Visual */
.auth-split-col-visual {
  padding: 24px 12px 24px 32px;
  display: flex;
}

.auth-visual-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 580px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.auth-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.auth-visual-wrapper:hover .auth-visual-img {
  transform: scale(1.02);
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 40px;
  color: #ffffff;
}

.auth-visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-visual-headline {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 0 12px 0;
  color: #ffffff;
}

.auth-visual-caption {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 480px;
}

/* Right Column - Authentication Form */
.auth-split-col-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.auth-form-inner-box {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

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

.auth-welcome-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #111827;
  margin: 0 0 10px 0;
}

.auth-welcome-subtitle {
  font-size: 14.5px;
  line-height: 1.55;
  color: #6b7280;
  margin: 0;
}

.auth-welcome-subtitle strong {
  color: #111827;
  font-weight: 600;
}

/* Flash/toast alerts use the shared .flash-toast-stack / .alert-banner
   component defined in main.css (loaded by this layout too). */

/* Capsule Form Elements */
.auth-capsule-form {
  width: 100%;
}

.auth-field-row {
  margin-bottom: 16px;
}

.auth-pill-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.auth-pill-input {
  width: 100%;
  height: 52px;
  padding: 0 24px;
  font-size: 14.5px;
  font-family: inherit;
  color: #111827;
  background-color: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
}

.auth-pill-input::placeholder {
  color: #9ca3af;
  font-size: 14px;
}

.auth-pill-input:focus {
  border-color: #5046e5;
  box-shadow: 0 0 0 4px rgba(80, 70, 229, 0.12);
}

.auth-pill-eye-btn {
  position: absolute;
  right: 18px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.auth-pill-eye-btn:hover {
  color: #4b5563;
}

/* Forgot Password Row */
.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 20px 0;
  padding-right: 8px;
}

.auth-forgot-text {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-forgot-text:hover {
  color: #5046e5;
  text-decoration: underline;
}

/* Primary Capsule CTA Button */
.btn-auth-primary-pill {
  width: 100%;
  height: 52px;
  border-radius: 9999px;
  background: var(--color-accent);
  border: none;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-accent-glow);
}

.btn-auth-primary-pill:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-accent-glow);
  transform: translateY(-1px);
}

.btn-auth-primary-pill:active {
  transform: translateY(1px);
}

/* Or Divider */
.auth-or-separator {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.auth-or-separator::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e5e7eb;
}

.auth-or-separator span {
  position: relative;
  background: #ffffff;
  padding: 0 16px;
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

/* Google Capsule Button */
.btn-auth-google-pill {
  width: 100%;
  height: 52px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #374151;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-auth-google-pill:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.google-icon-svg {
  flex-shrink: 0;
}

/* Bottom Switch Row */
.auth-bottom-switch {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: #6b7280;
}

.auth-switch-link {
  color: #111827;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.15s ease;
}

.auth-switch-link:hover {
  color: #5046e5;
  text-decoration: underline;
}

/* Role Selector Tabs (Pill Style) */
.auth-capsule-role-tabs {
  display: flex;
  background: #f3f4f6;
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.auth-capsule-role-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7280;
  border-radius: 9999px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

.auth-capsule-role-tab input[type="radio"] {
  display: none;
}

.auth-capsule-role-tab.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   3. Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .auth-top-navbar {
    height: 68px;
  }
  .auth-navbar-container {
    padding: 0 20px;
  }
  .auth-split-col-form {
    padding: 36px 20px;
  }
  .auth-welcome-title {
    font-size: 28px;
  }
}
