/* ============================================================
   PERABOTAN CREATOR STUDIO - TAILADMIN AUTH (Sign In & Sign Up)
   Standalone CSS file (completely decoupled from dashboard.css)
   Colors & design tokens matched with Dashboard (Amber & Stone)
   ============================================================ */

/* CSS Reset & Variables */
:root {
  --auth-brand-50:  #fffbeb;
  --auth-brand-100: #fef3c7;
  --auth-brand-200: #fde68a;
  --auth-brand-300: #fcd34d;
  --auth-brand-400: #fbbf24;
  --auth-brand-500: #f59e0b;
  --auth-brand-600: #d97706;
  --auth-brand-700: #b45309;
  
  --auth-bg-light: #faf8f5;
  --auth-card-light: #ffffff;
  --auth-text-light: #1c1917;
  --auth-muted-light: #78716c;
  --auth-border-light: #e7e5e4;
  --auth-input-bg-light: #f5f5f4;

  --auth-bg-dark: #0c0a09;
  --auth-card-dark: #141210;
  --auth-text-dark: #fafaf9;
  --auth-muted-dark: #a8a29e;
  --auth-border-dark: #292524;
  --auth-input-bg-dark: #1c1917;
}

/* Global Font & Smooth Layout */
html {
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--auth-bg-light);
  color: var(--auth-text-light);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Dark mode root styles */
html.dark body {
  background-color: var(--auth-bg-dark);
  color: var(--auth-text-dark);
}

/* Prevent unwanted desktop window scroll */
@media (min-width: 1024px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }
  .auth-viewport-wrapper {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
  .auth-form-column {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d6d3d1 transparent;
  }
  html.dark .auth-form-column {
    scrollbar-color: #44403c transparent;
  }
  .auth-hero-column {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
}

/* Split Screen Columns */
.auth-wrapper-flex {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.auth-form-column {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.auth-hero-column {
  display: none;
}

@media (min-width: 1024px) {
  .auth-wrapper-flex {
    flex-direction: row !important;
    height: 100vh !important;
  }
  .auth-form-column {
    width: 50% !important;
    min-width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 2.5rem 3.5rem !important;
  }
  .auth-hero-column {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 50% !important;
    min-width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
}

/* Precision Typography & Form Styling */
.auth-title {
  font-size: 1.75rem;
  line-height: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--auth-text-light);
  margin: 0;
}

html.dark .auth-title {
  color: #ffffff;
}

.auth-subtitle {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--auth-muted-light);
  margin-top: 0.375rem;
  margin-bottom: 0;
}

html.dark .auth-subtitle {
  color: var(--auth-muted-dark);
}

.auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1rem;
  color: #44403c;
  margin-bottom: 0.4rem;
}

html.dark .auth-label {
  color: #e7e5e4;
}

.auth-input {
  width: 100%;
  height: 2.75rem; /* 44px precision height */
  box-sizing: border-box;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-family: inherit;
  color: #1c1917;
  background-color: var(--auth-input-bg-light);
  border: 1px solid var(--auth-border-light);
  border-radius: 0.625rem;
  outline: none;
  transition: all 0.15s ease-in-out;
}

.auth-input::placeholder {
  color: #a8a29e;
}

.auth-input:focus {
  background-color: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

html.dark .auth-input {
  background-color: #1c1917;
  border-color: #292524;
  color: #ffffff;
}

html.dark .auth-input::placeholder {
  color: #78716c;
}

html.dark .auth-input:focus {
  background-color: #141210;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* Primary Button (Dashboard Amber Palette) */
.auth-btn-primary {
  width: 100%;
  height: 2.875rem; /* 46px */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0c0a09;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-in-out;
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.25);
}

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

/* Social Buttons */
.auth-btn-social {
  height: 2.625rem; /* 42px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background-color: #f5f5f4;
  color: #292524;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid #e7e5e4;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.auth-btn-social:hover {
  background-color: #e7e5e4;
  color: #0c0a09;
}

html.dark .auth-btn-social {
  background-color: #1c1917;
  border-color: #292524;
  color: #fafaf9;
}

html.dark .auth-btn-social:hover {
  background-color: #292524;
  color: #ffffff;
}

/* Demo Account Card & Quick Buttons */
.auth-demo-card {
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: #f5f5f4;
  border: 1px solid #e7e5e4;
}

html.dark .auth-demo-card {
  background-color: #141210;
  border-color: #292524;
}

.auth-demo-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.5rem;
  border: 1px solid #fde68a;
  background-color: #fffbeb;
  color: #b45309;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: all 0.15s ease;
}

.auth-demo-btn:hover {
  background-color: #fef3c7;
  color: #92400e;
}

html.dark .auth-demo-btn {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

html.dark .auth-demo-btn:hover {
  background-color: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

/* Divider Pill (Precision Background & Contrast) */
.auth-divider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
}

.auth-divider-line {
  width: 100%;
  border-top: 1px solid #e7e5e4;
}

html.dark .auth-divider-line {
  border-top-color: #292524;
}

.auth-divider-pill {
  position: absolute;
  background-color: var(--auth-bg-light);
  padding: 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78716c;
}

html.dark .auth-divider-pill {
  background-color: var(--auth-bg-dark);
  color: #a8a29e;
}

/* Custom Checkbox & Terms Text */
.auth-checkbox-box {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.3125rem;
  border: 1.5px solid #d6d3d1;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.auth-checkbox-box.checked {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

html.dark .auth-checkbox-box {
  border-color: #57534e;
}

html.dark .auth-checkbox-box.checked {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

.auth-terms-text {
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: #57534e;
}

html.dark .auth-terms-text {
  color: #d6d3d1;
}

.auth-terms-text strong,
.auth-terms-text span {
  color: #1c1917;
}

html.dark .auth-terms-text strong,
html.dark .auth-terms-text span {
  color: #fafaf9;
}

/* Floating Dark Mode Toggle */
.auth-theme-toggler {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: #1c1917;
  color: #fbbf24;
  border: 1px solid #44403c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-theme-toggler:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

html.dark .auth-theme-toggler {
  background-color: #292524;
  color: #f59e0b;
  border-color: #57534e;
}

/* Right Hero Column */
.auth-hero-column {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
              linear-gradient(135deg, #0c0a09 0%, #1c1917 50%, #0c0a09 100%);
  border-left: 1px solid #292524;
  position: relative;
  overflow: hidden;
}

/* Text links */
.auth-link {
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-link:hover {
  color: #b45309;
  text-decoration: underline;
}

html.dark .auth-link {
  color: #fbbf24;
}

html.dark .auth-link:hover {
  color: #fcd34d;
}

/* Precision Positioning Helpers for Input Icons and Action Buttons */
.right-3 {
  right: 0.75rem !important;
}
.top-1\/2 {
  top: 50% !important;
}
.-translate-y-1\/2 {
  transform: translateY(-50%) !important;
}
