/* =====================================================
   SASTITAXI — Auth Pages (Clean Modern Enterprise SaaS)
   Theme: Soft Slate (#f8fafc) · Slate Navy (#0f172a) · Amber Accent (#f59e0b)
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --amber:         #f59e0b;
  --amber-dark:    #d97706;
  --amber-light:   #fffbeb;
  --navy:          #0f172a;
  --navy-2:        #1e293b;
  --bg:            #f8fafc;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --border-focus:  #cbd5e1;
  --text-1:        #0f172a;
  --text-2:        #334155;
  --text-3:        #64748b;
  --text-4:        #94a3b8;
  --font-base:     'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'Outfit', 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.auth-body {
  min-height: 100vh;
  font-family: var(--font-base);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.auth-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* Card */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 20px 35px -4px rgba(15, 23, 42, 0.06);
  padding: 2.25rem 2.25rem 2rem;
  position: relative;
}

/* Header */
.auth-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 1.15rem;
}
.auth-logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: #0b132b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}
.auth-logo__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.auth-logo__dot {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amber);
}

.auth-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.auth-card-subtitle {
  font-size: 0.86rem;
  color: var(--text-3);
  line-height: 1.45;
}

/* Alerts */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  animation: authAlertSlide 0.25s ease both;
}
.auth-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}
.auth-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.auth-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes authAlertSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

.auth-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.auth-label i {
  font-size: 0.75rem;
  color: var(--amber-dark);
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--text-1);
  font-family: var(--font-base);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-input::placeholder {
  color: #94a3b8;
}
.auth-input:hover:not(:focus) {
  border-color: #cbd5e1;
}
.auth-input:focus {
  border-color: var(--amber-dark);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.auth-input.is-invalid {
  border-color: #ef4444;
  background: #fef2f2;
}
.auth-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.auth-input-wrap--icon .auth-input {
  padding-right: 2.85rem;
}
.auth-eye-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem;
  transition: color 0.15s ease;
}
.auth-eye-btn:hover {
  color: var(--navy);
}

.auth-field-error {
  font-size: 0.76rem;
  color: #dc2626;
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.auth-field-error.show {
  display: flex;
}

/* Options */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: -0.15rem;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.auth-checkbox input[type="checkbox"] {
  display: none;
}
.auth-checkbox__box {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  transition: all 0.15s ease;
  position: relative;
  flex-shrink: 0;
}
.auth-checkbox:hover .auth-checkbox__box {
  border-color: var(--amber-dark);
}
.auth-checkbox input:checked + .auth-checkbox__box {
  background: var(--amber);
  border-color: var(--amber-dark);
}
.auth-checkbox input:checked + .auth-checkbox__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: 2px solid #0b132b;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.auth-checkbox__label {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 500;
}

.auth-link {
  color: var(--amber-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.auth-link:hover {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Button */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.25rem;
  border-radius: 9px;
  font-family: var(--font-base);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  width: 100%;
}
.auth-btn--primary {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.auth-btn--primary:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: var(--amber);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}
.auth-btn--primary:active {
  transform: translateY(0);
}
.auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Card Footer */
.auth-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.auth-back-link {
  font-size: 0.83rem;
  color: var(--text-3);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.auth-back-link:hover {
  color: var(--navy);
}

.auth-security-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.76rem;
  color: var(--text-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

@media (max-width: 480px) {
  body.auth-body {
    padding: 1.5rem 1rem;
  }
  .auth-card {
    padding: 1.75rem 1.35rem 1.5rem;
  }
}
