/* ==========================================================================
   ROSMONPRO ENTERPRISE OS — PRISTINE LIGHT & CLEAN AUTHENTICATION STYLES
   Design System: Pearl White (#ffffff / #f8fafc), Slate Navy (#0f172a), Royal Blue (#2563eb)
   ========================================================================== */

:root {
  --auth-bg-pearl: #f8fafc;
  --auth-bg-white: #ffffff;
  --auth-slate-900: #0f172a;
  --auth-slate-800: #1e293b;
  --auth-slate-700: #334155;
  --auth-slate-600: #475569;
  --auth-slate-400: #94a3b8;
  --auth-blue-600: #2563eb;
  --auth-blue-500: #3b82f6;
  --auth-border: #e2e8f0;
  --auth-border-input: #cbd5e1;
  --auth-card-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
}

body.auth-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--auth-bg-pearl) !important;
  color: var(--auth-slate-900) !important;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

.auth-page-container {
  min-height: 100vh;
  display: flex;
  background-color: var(--auth-bg-pearl);
}

/* --------------------------------------------------------------------------
   LEFT SHOWCASE SIDE (DESKTOP) — LIGHT & CLEAN
   -------------------------------------------------------------------------- */
.auth-visual-side {
  position: relative;
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 3.5rem;
  background: radial-gradient(circle at 85% 15%, rgba(219, 234, 254, 0.6) 0%, transparent 55%),
              linear-gradient(135deg, #f8fafc 0%, #eff6ff 60%, #f1f5f9 100%);
  border-right: 1px solid var(--auth-border);
  overflow: hidden;
}

@media (min-width: 992px) {
  .auth-visual-side {
    display: flex;
  }
}

.auth-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.07;
  mix-blend-mode: multiply;
  z-index: 1;
}

.auth-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 1;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(248, 250, 252, 0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

.auth-visual-content {
  position: relative;
  z-index: 3;
}

.auth-visual-side h2,
.auth-visual-side h2.text-white {
  color: var(--auth-slate-900) !important;
}

.auth-visual-side p,
.auth-visual-side p.text-secondary,
.auth-visual-side .text-secondary {
  color: var(--auth-slate-600) !important;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--auth-border);
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.auth-brand-badge .text-white {
  color: var(--auth-slate-900) !important;
}

.auth-brand-badge img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

.auth-feature-card {
  background: #ffffff;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.auth-feature-card:hover {
  background: #ffffff;
  transform: translateX(4px);
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.auth-feature-card .text-white {
  color: var(--auth-slate-900) !important;
}

.auth-feature-card .text-secondary {
  color: var(--auth-slate-600) !important;
}

.auth-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--auth-blue-600);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   RIGHT FORM SIDE — LIGHT & CLEAN
   -------------------------------------------------------------------------- */
.auth-form-side {
  flex: 1;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: #ffffff;
  position: relative;
}

@media (min-width: 992px) {
  .auth-form-side {
    max-width: 600px;
    background: #ffffff;
    border-left: 1px solid var(--auth-border);
  }
}

.auth-card-modern {
  width: 100%;
  max-width: 490px;
  background: #ffffff;
  border: 1px solid var(--auth-border);
  border-radius: 24px;
  padding: 2.75rem 2.25rem;
  box-shadow: var(--auth-card-shadow);
}

.auth-card-wide {
  max-width: 680px;
}

.auth-card-modern h3,
.auth-card-modern h3.text-white,
.auth-card-modern h2,
.auth-card-modern h2.text-white {
  color: var(--auth-slate-900) !important;
}

.auth-card-modern p.text-secondary,
.auth-card-modern span.text-secondary {
  color: var(--auth-slate-600) !important;
}

/* Custom Nav Tabs for Role Switching */
.auth-tabs-pill {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 2rem;
}

.auth-tabs-pill .nav-item {
  flex: 1;
}

.auth-tabs-pill .nav-link {
  width: 100%;
  text-align: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--auth-slate-600);
  padding: 0.65rem 0.5rem;
  transition: all 0.25s ease;
  border: none;
}

.auth-tabs-pill .nav-link:hover {
  color: var(--auth-blue-600);
  background: #ffffff;
}

.auth-tabs-pill .nav-link.active {
  background: var(--auth-blue-600);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Custom Input Styling */
.auth-input-group {
  position: relative;
  margin-bottom: 1.35rem;
}

.auth-input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--auth-slate-800);
  margin-bottom: 0.45rem;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 1.15rem;
  color: #64748b;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

.auth-input-control {
  width: 100%;
  height: 50px;
  padding: 0.65rem 1rem 0.65rem 2.85rem;
  background: #f8fafc;
  border: 1.5px solid var(--auth-border-input);
  border-radius: 12px;
  color: var(--auth-slate-900);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.auth-input-control:focus {
  background: #ffffff;
  border-color: var(--auth-blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
  color: var(--auth-slate-900);
}

.auth-input-control::placeholder {
  color: #94a3b8;
}

.auth-password-toggle {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.auth-password-toggle:hover {
  color: var(--auth-slate-900);
}

/* Primary Button */
.btn-auth-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
  color: #ffffff !important;
}

/* Radio Account Selector in Register */
.auth-radio-card {
  display: block;
  background: #f8fafc;
  border: 1.5px solid var(--auth-border-input);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  height: 100%;
}

.auth-radio-card:hover {
  background: #f1f5f9;
  border-color: #93c5fd;
}

.auth-radio-card.active {
  background: #eff6ff;
  border-color: var(--auth-blue-600);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.auth-radio-card .text-white {
  color: var(--auth-slate-900) !important;
}

.auth-radio-card .text-secondary {
  color: var(--auth-slate-600) !important;
}

/* Registration summary card styling in light mode */
.auth-card-modern .card.bg-dark {
  background-color: #f8fafc !important;
  border: 1px solid var(--auth-border) !important;
}

.auth-card-modern .card.bg-dark .text-white {
  color: var(--auth-slate-900) !important;
}

.auth-card-modern .card.bg-dark .text-secondary {
  color: var(--auth-slate-600) !important;
}
