/**
 * NRITrack - Modern Single-Screen Auth & Onboarding Portal Stylesheet
 * File: css/login.css
 */

/* Reset & Full Screen Gentleman Layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #F8FAFC;
  color: #0F172A;
  overflow-x: hidden;
}

.register-screen-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   LEFT 2/3: GENTLEMAN LIGHT SHOWCASE (Dynamic on Flow State)
   ============================================================ */
.register-showcase-pane {
  flex: 1.75;
  height: 100%;
  position: relative;
  background: #F8FAFC;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #E8EEF5 100%);
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
  z-index: 1;
}

/* Subtle Typographic Compliance Ambient Watermarks (Light Gentleman Gray) */
.ambient-watermarks-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.watermark-tag {
  position: absolute;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  color: #0F172A;
  opacity: 0.038;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.wm-1 {
  top: 8.5%;
  left: 0%;
  font-size: 5.8rem;
  transform: rotate(-2deg);
}

.wm-2 {
  top: 14%;
  right: 1%;
  font-size: 4.8rem;
  transform: rotate(2deg);
}

.wm-3 {
  top: 28%;
  left: 2%;
  font-size: 6.2rem;
  transform: rotate(-1deg);
}

.wm-4 {
  top: 44%;
  right: 0%;
  font-size: 3.4rem;
  transform: rotate(-1deg);
}

.wm-5 {
  top: 60%;
  left: 1%;
  font-size: 5.2rem;
  transform: rotate(2deg);
}

.wm-6 {
  bottom: 14%;
  right: 4%;
  font-size: 3.8rem;
  transform: rotate(-2deg);
}

.wm-7 {
  top: 36%;
  right: 22%;
  font-size: 3.2rem;
  opacity: 0.025;
}

.wm-8 {
  bottom: 4%;
  left: 25%;
  font-size: 4.2rem;
  opacity: 0.025;
}

/* Left Pane Foreground Content Container */
.showcase-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 740px;
}

/* Brand Logo */
.showcase-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0F172A;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
}

.showcase-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  background: #FFFFFF;
}

.badge-compliance-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 8px;
}

/* Hero Text */
.showcase-hero-text {
  margin: auto 0 20px 0;
}

.showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 750;
  color: #0284C7;
  background: #E0F2FE;
  border: 1px solid #BAE6FD;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.showcase-heading {
  font-size: 2.15rem;
  font-weight: 850;
  color: #0F172A;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 0 0 20px 0;
  white-space: nowrap;
}

@media (max-width: 1440px) {
  .showcase-heading {
    font-size: 1.85rem;
  }
}

.text-blue-grad {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gentleman Feature Checklist with Green Ticks */
.showcase-gentleman-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.showcase-gentleman-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.showcase-gentleman-list li:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transform: translateX(3px);
}

.check-circle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #10B981;
  border: 1.5px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.list-text {
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.45;
}

.list-text strong {
  color: #0F172A;
  font-weight: 750;
  display: block;
  margin-bottom: 2px;
}

.list-text span {
  color: #64748B;
  font-size: 0.84rem;
  display: block;
}

/* Bottom Trust Proofs */
.showcase-bottom-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid #E2E8F0;
  font-size: 0.84rem;
  color: #64748B;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item strong {
  color: #0F172A;
}

.text-yellow {
  color: #F59E0B;
}

/* ============================================================
   RIGHT 1/3: INTERACTIVE AUTH ENGINE PANE
   ============================================================ */
.register-form-pane {
  flex: 1.15;
  height: 100%;
  background: #FFFFFF;
  border-left: 1px solid #E2E8F0;
  overflow-y: auto;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.04);
  position: relative;
  z-index: 2;
}

.register-form-inner {
  max-width: 480px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
}

/* Progress Header */
.register-progress-header {
  margin-bottom: 24px;
}

.progress-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.progress-step-badge {
  color: #0284C7;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.progress-step-name {
  color: #64748B;
}

.split-progress-bar {
  display: flex;
  gap: 8px;
  width: 100%;
  height: 5px;
}

.progress-segment {
  flex: 1;
  height: 100%;
  background: #E2E8F0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.progress-segment.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0F172A;
  border-radius: 4px;
}

/* Pane Header Title */
.pane-header-block {
  margin-bottom: 24px;
}

.pane-title {
  font-size: 1.85rem;
  font-weight: 850;
  color: #0F172A;
  letter-spacing: -0.6px;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.pane-subtitle {
  font-size: 0.95rem;
  color: #64748B;
  margin: 0;
  font-weight: 500;
}

/* Form Fields */
.form-label {
  font-size: 0.86rem;
  font-weight: 750;
  color: #0F172A;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  height: 48px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #0F172A;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-text {
  font-size: 0.76rem;
  color: #64748B;
  margin-top: 4px;
}

/* Passwordless Banner */
.page-passwordless-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0 20px;
  font-size: 0.82rem;
  color: #166534;
}

.page-passwordless-banner i {
  font-size: 1.15rem;
  color: #16A34A;
  margin-top: 2px;
  flex-shrink: 0;
}

/* OTP Inputs Group (6 Digits) */
.otp-boxes-wrapper {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 16px;
}

.otp-digit-input {
  width: 48px;
  height: 58px;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  border: 2px solid #CBD5E1;
  border-radius: 12px;
  background: #F8FAFC;
  color: #0F172A;
  transition: all 0.2s ease;
}

.otp-digit-input:focus {
  border-color: #0F172A;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12);
  outline: none;
}

.resend-otp-block {
  text-align: center;
  margin: 12px 0 20px;
  font-size: 0.85rem;
  color: #64748B;
}

.resend-otp-btn {
  background: none;
  border: none;
  color: #0F172A;
  font-weight: 750;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* Action Buttons */
.step1-btn-group,
.btn-step-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
}

.btn-reg-back {
  height: 50px;
  padding: 0 22px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-reg-back:hover {
  background: #F1F5F9;
  color: #0F172A !important;
  border-color: #94A3B8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-reg-main {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0B1E36 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.btn-reg-main:hover {
  background: linear-gradient(135deg, #0B1320 0%, #172554 50%, #0A1E3F 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #FFFFFF !important;
}

.btn-success-dashboard {
  background: linear-gradient(135deg, #064E3B 0%, #047857 50%, #059669 100%) !important;
  box-shadow: 0 8px 24px -4px rgba(5, 150, 105, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-success-dashboard:hover {
  background: linear-gradient(135deg, #022C22 0%, #065F46 50%, #047857 100%) !important;
  box-shadow: 0 12px 28px -4px rgba(5, 150, 105, 0.6) !important;
}

.reg-login-prompt {
  text-align: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #F1F5F9;
  font-size: 0.9rem;
  color: #64748B;
}

.reg-login-prompt a {
  color: #0F172A;
  font-weight: 750;
  text-decoration: none;
  margin-left: 4px;
}

.reg-login-prompt a:hover {
  text-decoration: underline;
}

/* Step 2 Toggle Cards */
.step2-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.step2-toggle-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.step2-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step2-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.icon-blue {
  background: #E0F2FE;
  color: #0284C7;
}

.icon-amber {
  background: #FEF3C7;
  color: #D97706;
}

.icon-green {
  background: #DCFCE7;
  color: #16A34A;
}

.icon-red {
  background: #FEE2E2;
  color: #DC2626;
}

.icon-saffron {
  background: #FFEDD5;
  color: #EA580C;
}

.icon-cyan {
  background: #ECFEFF;
  color: #0891B2;
}

.setting-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: #0F172A;
  margin-bottom: 1px;
}

.setting-sub {
  font-size: 0.75rem;
  color: #64748B;
  line-height: 1.25;
}

/* iOS Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: 0.3s;
  border-radius: 24px;
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.ios-slider {
  background-color: #0284C7;
}

input:checked+.ios-slider:before {
  transform: translateX(20px);
}

/* Professional SaaS Terms & Privacy Card */
.saas-terms-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0 22px;
  transition: all 0.2s ease;
}

.saas-terms-card:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.saas-terms-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.saas-custom-chk {
  width: 18px;
  height: 18px;
  accent-color: #0F172A;
  border-radius: 5px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.saas-terms-text {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.saas-legal-link {
  color: #0F172A;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.saas-legal-link:hover {
  color: #2563EB;
}

.saas-terms-security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #059669;
  margin-top: 6px;
}

/* Animation between steps */
.auth-pane-anim {
  animation: fadeInSlide 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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



/* Responsive adjustments */
@media (max-width: 1024px) {
  .register-screen-wrapper {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }

  .register-showcase-pane {
    flex: none;
    padding: 40px 24px;
    min-height: auto;
  }

  .register-form-pane {
    flex: none;
    padding: 36px 20px;
    border-left: none;
    border-top: 1px solid #E2E8F0;
  }

  .showcase-heading {
    white-space: normal;
    font-size: 2rem;
  }
}
