/* Auth Pages - Creative Minimal RTL-Friendly Styles */
:root {
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.auth-body {
  margin: 0;
  font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(800px 480px at 100% -10%, rgba(37, 99, 235, .08), transparent),
    radial-gradient(800px 480px at 0% 110%, rgba(6, 182, 212, .10), transparent),
    #f8fafc;
  color: #1e293b;
  display: block;
  overflow-x: hidden;
  padding: 0;
}

.auth-wrapper {
  width: 100%;
  max-width: 960px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transition: transform .25s ease, box-shadow .35s ease;
  margin-top: 24px;
}

.auth-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(2, 6, 23, .10);
}

/* Visual Panel */
.auth-visual {
  position: relative;
  padding: 42px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08) 0%, rgba(6, 182, 212, .10) 100%);
  display: none;
  /* hidden on small screens */
}

/* Animated Orbs */
.auth-visual .accent-orb {
  position: absolute;
  filter: blur(18px);
  opacity: .55;
  border-radius: 999px;
  pointer-events: none;
}

.auth-visual .orb1 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, #60a5fa, transparent 60%), #2563eb33;
  top: 10%;
  left: 8%;
  animation: floatY 8s ease-in-out infinite;
}

.auth-visual .orb2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 70% 40%, #22d3ee, transparent 60%), #06b6d433;
  bottom: 8%;
  right: 10%;
  animation: floatX 9s ease-in-out infinite;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

@keyframes floatX {

  0%,
  100% {
    transform: translateX(0)
  }

  50% {
    transform: translateX(14px)
  }
}

.auth-visual .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .5px;
}

.auth-visual .brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(120% 120% at 30% 20%, #60a5fa, #2563eb);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .35);
}

.auth-visual .taglines {
  margin-top: 80px;
}

.auth-visual .taglines h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
}

.auth-visual .taglines p {
  margin: 0;
  color: var(--muted);
}

.auth-visual .stats {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.auth-visual .pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--border);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(2, 6, 23, .06);
}

/* Form Panel */
.auth-form {
  background: #fff;
  padding: 36px 28px;
}

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

.auth-header h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.auth-tabs a.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(6, 182, 212, .15));
  color: #0f172a;
}

.form {
  display: grid;
  gap: 14px;
  direction: rtl;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 800;
  font-size: 14px;
  color: #cbd5e1;
}

.input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0);
}

.input i {
  color: var(--primary-2);
}

.input input,
.input select {
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  width: 100%;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
}

/* Focus ring */
.input:focus-within {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12), 0 10px 22px rgba(2, 6, 23, .06);
}

.help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.help-row a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.help-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Custom checkbox accent */
.help-row input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.btn-primary {
  width: 100%;
  border: none;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .3s ease;
  box-shadow: 0 10px 25px rgba(37, 99, 235, .20);
  position: relative;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 182, 212, .20);
}

/* Sheen effect */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
}

.btn-primary:hover::after {
  transform: translateX(120%);
  transition: transform .8s ease;
}

.alt-actions {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.alt-actions .btn-ghost {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  background: #fff;
  color: #0f172a;
  border: 1px dashed var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.notice {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.notice a {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 800;
}

/* Password strength */
.strength {
  display: flex;
  gap: 6px;
  height: 6px;
  margin-top: 6px;
}

.strength span {
  flex: 1;
  background: #1f2937;
  border-radius: 999px;
}

.strength[data-level="1"] span:nth-child(1) {
  background: #ef4444;
}

.strength[data-level="2"] span:nth-child(-n+2) {
  background: #f59e0b;
}

.strength[data-level="3"] span:nth-child(-n+3) {
  background: #10b981;
}

/* Small hint text */
.hint {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

/* Password Requirements Checklist */
.password-requirements {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.password-requirements .requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  transition: all 0.3s ease;
}

.password-requirements .requirement i {
  font-size: 14px;
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.password-requirements .requirement.valid {
  color: #059669;
}

.password-requirements .requirement.valid i {
  color: #10b981;
  transform: scale(1.1);
}

.password-requirements .requirement.invalid {
  color: #dc2626;
}

.password-requirements .requirement.invalid i {
  color: #ef4444;
}

/* Visual testimonial */
.visual-testimonial {
  margin-top: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 4px 20px rgba(2, 6, 23, .08);
}

.testimonial-content {
  position: relative;
}

.quote-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 16px;
  margin-bottom: 12px;
}

.testimonial-content p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  font-weight: 600;
  font-style: italic;
}

.testimonial-content .author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-content .author strong {
  font-size: 14px;
  color: #0f172a;
}

.testimonial-content .author span {
  font-size: 12px;
  color: #64748b;
}

/* Input icons animation */
.input i {
  transition: transform .3s ease, color .3s ease;
}

.input:focus-within i {
  transform: scale(1.1);
  color: var(--primary);
}

/* Label animation */
.field label {
  transition: color .2s ease;
}

.input:focus-within~label,
.field:focus-within label {
  color: var(--primary);
}

/* Button loading state */
.btn-primary {
  position: relative;
}

.btn-primary .btn-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: inherit;
  border-radius: inherit;
}

.btn-primary.loading .btn-loader {
  display: flex;
}

.btn-primary.loading>span,
.btn-primary.loading>i:not(.btn-loader i) {
  opacity: 0;
}

/* Progress indicator */
.form-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background .3s ease;
}

.progress-step.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

/* Security badge */
.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  margin-top: 16px;
}

.security-badge i {
  color: var(--success);
  font-size: 18px;
}

.security-badge .text {
  flex: 1;
}

.security-badge .text strong {
  display: block;
  font-size: 13px;
  color: #166534;
  margin-bottom: 2px;
}

.security-badge .text span {
  font-size: 12px;
  color: #16a34a;
}

/* Dark mode security badge - Disabled */
/* body.dark-mode .security-badge .text strong {
  color: #86efac;
}
body.dark-mode .security-badge .text span {
  color: #4ade80;
} */

/* Input character counter */
.char-counter {
  font-size: 11px;
  color: #94a3b8;
  text-align: left;
  margin-top: 4px;
}

/* Tooltip */
.tooltip-trigger {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1e293b;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 100;
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

.tooltip-trigger:hover .tooltip-content {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Auth Header - Unified Design */
.auth-page-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: relative;
  box-shadow: 0 2px 8px rgba(2, 6, 23, .04);
  min-height: 76px;
  width: 100%;
}

.auth-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 50%, var(--primary) 100%);
}

/* Unified Header Container */
.auth-header-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 1024px) {
  .auth-header-content {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
  }
}

@media (max-width: 640px) {
  .auth-header-content {
      padding-left: 1rem;
      padding-right: 1rem;
  }
}

/* Global Font Enforcement */
.auth-wrapper, 
.auth-wrapper button, 
.auth-wrapper input,
.auth-wrapper select,
.auth-header-content {
  font-family: 'Cairo', sans-serif;
}

/* Top Section - Brand + Nav */
.auth-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  min-height: 76px;
  gap: 24px;
}

/* Brand Logo - Left */
.auth-header-main .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.auth-header-main .logo-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .2);
  transition: all .3s ease;
}

.auth-header-main .brand-logo:hover .logo-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}

.auth-header-main .logo-icon i {
  font-size: 22px;
  color: white;
}

.auth-header-main .logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-header-main .brand-name {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.auth-header-main .brand-tagline {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* Navigation Links - Right */
.auth-header-main .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-header-main .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: white;
  color: #475569;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--border);
  position: relative;
  transition: all .3s ease;
  white-space: nowrap;
  height: 42px;
  box-sizing: border-box;
}

.auth-header-main .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(6, 182, 212, .06));
  opacity: 0;
  transition: opacity .3s ease;
}

.auth-header-main .nav-link:hover::before {
  opacity: 1;
}

.auth-header-main .nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.auth-header-main .nav-link i {
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.auth-header-main .nav-link span {
  position: relative;
  z-index: 1;
}

.auth-header-main .nav-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
  border-color: transparent;
}

.auth-header-main .nav-link.active::before {
  display: none;
}

.auth-header-main .nav-link.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-header-main {
    padding: 16px 0;
  }

  .auth-header-main .brand-tagline {
    display: none;
  }

  .auth-header-main .nav-link span {
    display: none;
  }

  .auth-header-main .nav-link {
    padding: 10px 14px;
  }
}

.auth-page-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(2, 6, 23, .06);
  transition: all .3s ease;
}

.auth-page-header .navbar-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, .12);
}

.auth-page-header .navbar-brand img {
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .1));
}

.auth-page-header .navbar-brand strong {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-page-header .nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-page-header .nav-actions .nav-link {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: all .3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.auth-page-header .nav-actions .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(6, 182, 212, .08));
  opacity: 0;
  transition: opacity .3s ease;
}

.auth-page-header .nav-actions .nav-link:hover::before {
  opacity: 1;
}

.auth-page-header .nav-actions .nav-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
}

.auth-page-header .nav-actions .nav-link.active::after {
  display: none;
}

.auth-page-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 10px;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all .3s ease;
  border: 1px solid var(--border);
}

.auth-page-header .back-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(4px);
}

.auth-page-header .back-link i {
  transition: transform .3s ease;
}

.auth-page-header .back-link:hover i {
  transform: translateX(3px);
}

.auth-page-header .header-message {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
}

.auth-page-header .header-message i {
  color: var(--primary-2);
  font-size: 16px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: all .2s ease;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, .06);
}

.breadcrumb .separator {
  color: #cbd5e1;
  font-weight: 300;
}

.breadcrumb .current {
  color: #0f172a;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(37, 99, 235, .08);
  border-radius: 8px;
}

/* Inline validation */
.field-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  display: none;
  align-items: center;
  gap: 6px;
}

.field-error.show {
  display: flex;
}

.field-success {
  color: var(--success);
  font-size: 12px;
  margin-top: 4px;
  display: none;
  align-items: center;
  gap: 6px;
}

.field-success.show {
  display: flex;
}

.input.error {
  border-color: var(--danger);
}

.input.success {
  border-color: var(--success);
}

/* Success screen */
.success-screen {
  text-align: center;
  padding: 32px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 36px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, .25);
  animation: successPop .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-screen h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.success-screen p {
  margin: 0 0 28px;
  color: var(--muted);
}

.checklist {
  text-align: right;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.checklist h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item .icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0f2fe;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}

.checklist-item .text {
  flex: 1;
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}

/* Auth Footer - Compact Design */
.auth-page-footer {
  margin-top: 60px;
  background: white;
  border-top: 1px solid var(--border);
  position: relative;
}

.auth-page-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0.3;
}

.auth-page-footer .footer-compact {
  padding: 32px 0;
}

.auth-page-footer .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 32px;
  flex-wrap: wrap;
}

/* Brand Section */
.auth-page-footer .footer-brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-page-footer .footer-logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .15);
}

.auth-page-footer .footer-logo-icon i {
  font-size: 18px;
  color: white;
}

.auth-page-footer .footer-brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.auth-page-footer .footer-brand-text span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Links Section */
.auth-page-footer .footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.auth-page-footer .footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
  padding: 6px 10px;
  border-radius: 6px;
}

.auth-page-footer .footer-links a:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, .06);
}

/* Social + Copyright Section */
.auth-page-footer .footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-page-footer .social-links {
  display: flex;
  gap: 8px;
}

.auth-page-footer .social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, .06);
  border-radius: 8px;
  color: #64748b;
  text-decoration: none;
  transition: all .3s ease;
  font-size: 14px;
}

.auth-page-footer .social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.auth-page-footer .social-links a i {
  font-size: 16px;
}

.auth-page-footer .footer-copyright {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-page-footer .footer-row {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .auth-page-footer .footer-links {
    justify-content: center;
  }

  .auth-page-footer .footer-meta {
    flex-direction: column;
    gap: 16px;
  }
}

/* Password Requirements Checklist */
.password-requirements {
  margin-top: 8px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.password-requirements .requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  transition: color .2s ease;
}

.password-requirements .requirement:last-child {
  margin-bottom: 0;
}

.password-requirements .requirement i {
  font-size: 10px;
  color: #cbd5e1;
  transition: color .2s ease;
}

.password-requirements .requirement.met {
  color: var(--success);
}

.password-requirements .requirement.met i {
  color: var(--success);
}

/* Email Suggestions */
.email-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(2, 6, 23, .08);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.email-suggestions.show {
  display: block;
}

.email-suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: background .2s ease;
  font-size: 14px;
  color: #334155;
}

.email-suggestion-item:hover {
  background: rgba(37, 99, 235, .06);
}

.email-suggestion-item strong {
  color: var(--primary);
}

/* Caps Lock Warning */
.caps-lock-warning {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #f59e0b;
  font-size: 12px;
  font-weight: 600;
}

.caps-lock-warning.show {
  display: flex;
}

.caps-lock-warning i {
  font-size: 14px;
}

/* Character Counter */
.char-counter {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.char-counter.warning {
  color: #f59e0b;
}

/* Autofill Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #f0f9ff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  border-color: var(--primary) !important;
}

/* Error Shake Animation */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-8px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(8px);
  }
}

.input.shake {
  animation: shake 0.5s;
}

/* Success Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.input.success {
  animation: pulse 1s;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(2, 6, 23, .15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--primary);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: #f59e0b;
}

.toast i {
  font-size: 20px;
  color: var(--primary);
}

.toast.success i {
  color: var(--success);
}

.toast.error i {
  color: var(--danger);
}

.toast.warning i {
  color: #f59e0b;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 13px;
  color: #64748b;
}

.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  transition: color .2s ease;
}

.toast-close:hover {
  color: #64748b;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Social Proof Badge */
.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(6, 182, 212, .08));
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(16, 185, 129, .2);
}

.social-proof i {
  color: var(--success);
  font-size: 16px;
}

.social-proof .text {
  flex: 1;
  font-size: 13px;
  color: #166534;
  font-weight: 600;
}

.social-proof .count {
  font-size: 18px;
  font-weight: 900;
  color: var(--success);
}

/* Dark mode social proof - Disabled */
/* body.dark-mode .social-proof .text {
  color: #86efac;
}
body.dark-mode .social-proof .count {
  color: #4ade80;
} */

/* Time Estimate Badge */
.time-estimate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

.time-estimate i {
  color: var(--primary-2);
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Session Timeout Warning */
.session-warning {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(2, 6, 23, .15);
  max-width: 350px;
  z-index: 9999;
  display: none;
  border-left: 4px solid #f59e0b;
}

.session-warning.show {
  display: block;
  animation: slideIn 0.3s ease;
}

.session-warning-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.session-warning-header i {
  color: #f59e0b;
  font-size: 20px;
}

.session-warning-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.session-warning-body {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}

.session-warning-actions {
  display: flex;
  gap: 10px;
}

.session-warning-actions button {
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}

.session-warning-actions .btn-extend {
  background: var(--primary);
  color: white;
  border: none;
}

.session-warning-actions .btn-extend:hover {
  background: var(--primary-2);
}

.session-warning-actions .btn-logout {
  background: white;
  color: #64748b;
  border: 1px solid var(--border);
}

.session-warning-actions .btn-logout:hover {
  background: #f8fafc;
}

/* Field with relative positioning for suggestions */
.field {
  position: relative;
}

/* Responsive */
@media (min-width: 992px) {
  .auth-visual {
    display: block;
  }
}

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

  .auth-form {
    padding: 28px 22px;
  }
}

@media (max-width: 768px) {
  .auth-page-footer .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .auth-page-footer .copyright-content {
    flex-direction: column;
    text-align: center;
  }

  .toast-container {
    left: 20px;
    right: 20px;
  }

  .toast {
    min-width: auto;
  }

  /* Mobile Touch Targets */
  .input input,
  .input select,
  .btn-primary,
  .auth-tabs a {
    min-height: 48px;
  }
}