:root {
    --primary-coral: #D04324;
    --primary-coral-hover: #d94d1b;
    --primary-coral-glow: rgba(208, 67, 36, 0.4);
    --navy-dark: #0D1F39;
    --navy-medium: #0F203A;
    --navy-light: #182F57;
    --slate-text: #374151;
    --slate-muted: #6B7280;
    --slate-border: #E5E7EB;
    --bg-light: #F8FAFC;
    --accent-green: #22C55E;
    --accent-red: #EF4444;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--slate-text);
    background-color: var(--bg-light);
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-logo-img {
    max-height: 46px;
    width: auto;
    object-fit: contain;
}

.split {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-light);
}

/* --- Left Pane (Hero Panel) --- */
.hero-pane {
    position: relative;
    flex: 1.05 1 0%;
    overflow: hidden;
    background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy-medium) 55%, var(--navy-light) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    gap: 30px;
}

.mesh-container {
    position: absolute;
    inset: 0px;
    opacity: 0.9;
    pointer-events: none;
}

.blob-orange {
    position: absolute;
    top: -140px;
    left: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-coral) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(20px);
    animation: meshShift 18s ease-in-out infinite;
}

.blob-blue {
    position: absolute;
    bottom: -160px;
    right: -100px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, #2F6BD6 0%, transparent 70%);
    opacity: 0.35;
    filter: blur(24px);
    animation: meshShift 22s ease-in-out infinite reverse;
}

.grid-pattern-svg {
    position: absolute;
    inset: 0px;
    opacity: 0.12;
    width: 100%;
    height: 100%;
}

.flow-visuals-svg {
    position: absolute;
    inset: 0px;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.animated-route-svg {
    position: absolute;
    top: 120px;
    left: 0px;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* --- Branding logo on the Left --- */
.left-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    animation: riseIn 0.7s ease both;
    text-decoration: none;
}

.brand-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary-coral), #FF8351);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(208, 67, 36, 0.4) 0px 8px 22px;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--primary-coral);
    font-weight: 600;
    line-height: 1.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: auto 0;
}

.teams-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    animation: riseIn 0.7s ease 0.05s both;
}

.teams-trust-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: rgba(34, 197, 94, 0.25) 0px 0px 0px 4px;
}

.hero-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffffff;
    font-size: 42px;
    line-height: 1.12;
    margin: 0px 0px 16px;
    letter-spacing: -1px;
    text-wrap: balance;
    animation: riseIn 0.7s ease 0.1s both;
}

.hero-heading .coral-highlight {
    color: var(--primary-coral);
}

.hero-para {
    color: #a9b6cc;
    font-size: 16px;
    line-height: 1.6;
    margin: 0px 0px 30px;
    max-width: 440px;
    animation: riseIn 0.7s ease 0.16s both;
}

/* --- Floating metric cards --- */
.metrics-cards-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.metric-card {
    flex: 1 1 0%;
    min-width: 200px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: rgba(0, 0, 0, 0.28) 0px 24px 60px;
    transition: all 0.3s;
}

.metric-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.25);
}

.metric-card.card-on-time {
    animation: floatA 6s ease-in-out infinite, riseIn 0.7s ease 0.22s both;
}

.metric-card.card-active-shipments {
    animation: floatB 6.6s ease-in-out infinite, riseIn 0.7s ease 0.3s both;
}

.metric-card-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.on-time-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(34, 197, 94, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card-label {
    color: #9fb0c9;
    font-size: 12px;
    font-weight: 600;
}

.metric-card-value {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffffff;
    font-size: 28px;
}

.on-time-progress-track {
    margin-top: 10px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.on-time-progress-bar {
    height: 100%;
    width: 98%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent-green), #4ade80);
}

.live-badge {
    font-size: 11px;
    color: var(--primary-coral);
    font-weight: 700;
    background: rgba(208, 67, 36, 0.14);
    padding: 3px 8px;
    border-radius: 99px;
    letter-spacing: 0.5px;
}

.active-shipments-chart {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 34px;
    margin-top: 12px;
}

.active-shipments-chart .chart-bar {
    flex: 1 1 0%;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
}

.active-shipments-chart .chart-bar.highlight {
    background: var(--primary-coral);
    box-shadow: 0 0 8px var(--primary-coral);
}

/* --- Shipment toast banner --- */
.shipment-toast-banner {
    margin-top: 16px;
    padding: 15px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: rgba(0, 0, 0, 0.28) 0px 24px 60px;
    animation: floatC 7.4s ease-in-out infinite, riseIn 0.7s ease 0.38s both;
    transition: all 0.3s;
}

.shipment-toast-banner:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.toast-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary-coral), #ff8351);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 4px 10px rgba(208, 67, 36, 0.3);
}

.toast-main-content {
    flex: 1 1 0%;
}

.toast-text {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.toast-progress-row {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toast-progress-track {
    flex: 1 1 0%;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.toast-progress-fill {
    height: 100%;
    width: 78%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-coral), #ff9b6b);
}

.toast-percentage-text {
    color: #a9b6cc;
    font-size: 11px;
    font-weight: 600;
    min-width: 24px;
    text-align: right;
}

/* --- Left Pane Footer Stats --- */
.left-pane-stats-footer {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    animation: riseIn 0.7s ease 0.44s both;
    padding-top: 30px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffffff;
    font-size: 22px;
}

.stat-label {
    color: #7e8ea8;
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
}


/* --- Right Pane (Login Form Pane) --- */
.form-pane {
    position: relative;
    flex: 0.95 1 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 40px;
    overflow: hidden;
}

.form-glow-blob-top {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(208, 67, 36, 0.12), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.form-glow-blob-bottom {
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 32, 58, 0.1), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.form-pane-card-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    transition: max-width 0.4s;
}

.form-glass-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 38px;
    box-shadow: rgba(15, 32, 58, 0.14) 0px 30px 70px, rgba(15, 32, 58, 0.05) 0px 2px 8px;
}

/* --- Branding inline on Right --- */
.right-brand-inline {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 26px;
    text-decoration: none;
}

.right-brand-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy-dark), #24457a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(15, 32, 58, 0.28) 0px 8px 20px;
}

.right-brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--navy-dark);
    font-size: 16px;
}

.card-welcome-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 27px;
    color: var(--navy-dark);
    margin: 0px 0px 8px;
    letter-spacing: -0.5px;
}

.card-welcome-subtitle {
    color: var(--slate-muted);
    font-size: 14.5px;
    margin: 0px 0px 26px;
    line-height: 1.5;
    font-weight: 500;
}

/* --- Input Styles --- */
.form-group {
    margin-bottom: 0 !important;
}

.field-label {
    display: block !important;
    font-family: var(--font-main) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
    line-height: 16px !important;
}

.field-relative-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.field-icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.field-icon-left svg {
    width: 19px;
    height: 19px;
}

.card-text-input {
    width: 100%;
    padding: 14px 15px 14px 46px;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 14.5px;
    color: #1f2937;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    border: 1.5px solid #e5e7eb;
    box-shadow: none;
}

input.card-text-input {
    height: 47px;
}

.card-text-input::placeholder {
    color: #9ca3af;
}

.card-text-input:focus {
    border-color: var(--primary-coral);
    box-shadow: rgba(208, 67, 36, 0.12) 0px 0px 0px 4px;
}

.card-text-input.is-invalid {
    border-color: var(--accent-red) !important;
    box-shadow: rgba(239, 68, 68, 0.1) 0px 0px 0px 4px !important;
}

.card-text-input:-webkit-autofill,
.card-text-input:-webkit-autofill:hover,
.card-text-input:-webkit-autofill:focus,
.card-text-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.toggle-password-trigger {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-trigger:hover {
    color: #4b5563;
}

.toggle-password-trigger svg {
    width: 19px;
    height: 19px;
}

.validation-error-alert {
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    text-align: left;
}

/* --- Checkbox & Forgot Pwd Actions --- */
.form-actions-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.remember-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.remember-checkbox-input {
    display: none;
}

.custom-tick-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
}

.remember-checkbox-input:checked+.custom-tick-box {
    border-color: var(--primary-coral);
    background: var(--primary-coral);
}

.custom-tick-box svg {
    display: none;
}

.remember-checkbox-input:checked+.custom-tick-box svg {
    display: block;
}

.checkbox-label-text {
    font-size: 13.5px;
    color: #374151;
    font-weight: 500;
}

.forgot-password-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-coral);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: var(--primary-coral-hover);
    text-decoration: underline;
}

/* --- Secure Sign In Button --- */
.secure-submit-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(100deg, var(--navy-dark) 0%, #1c3a68 40%, var(--primary-coral) 130%) 0% 50% / 200% 100%;
    transition: background-position 0.5s, transform 0.15s, box-shadow 0.25s;
    transform: translateY(0px);
    box-shadow: rgba(15, 32, 58, 0.22) 0px 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 47px;
}

.secure-submit-btn:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow: rgba(15, 32, 58, 0.3) 0px 14px 28px;
}

.secure-submit-btn:active {
    transform: translateY(0px);
}

.secure-btn-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.secure-btn-inner svg {
    transition: transform 0.25s;
}

.secure-submit-btn:hover .secure-btn-inner svg {
    transform: translateX(3px);
}

/* --- Form Divider & Alternative --- */
.or-divider-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0px;
}

.divider-line {
    flex: 1 1 0%;
    height: 1px;
    background: #e2e8f0;
}

.divider-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.footer-signup-row {
    text-align: center;
    margin: 0px;
    font-size: 14px;
    color: var(--slate-muted);
}

.footer-signup-link {
    color: var(--primary-coral);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-signup-link:hover {
    color: var(--primary-coral-hover);
    text-decoration: underline;
}

/* --- Form Badges --- */
.form-badges-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge-pill-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--slate-muted);
    font-weight: 600;
    background: #f1f5f9;
    padding: 6px 11px;
    border-radius: 99px;
}

.badge-pill-inline svg {
    width: 13px;
    height: 13px;
}

.badge-pill-inline.ssl-badge svg {
    color: var(--accent-green);
}

.badge-pill-inline.secure-badge svg {
    color: var(--navy-dark);
}

.badge-pill-inline.support-badge svg {
    color: var(--primary-coral);
}

.form-bottom-copyright {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.form-bottom-copyright a {
    color: var(--slate-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.form-bottom-copyright a:hover {
    color: var(--slate-text);
    text-decoration: underline;
}

.form-bottom-copyright1 {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #fff;
    display: none;
}

.form-bottom-copyright1 a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.form-bottom-copyright1 a:hover {
    color: #D04324;
    text-decoration: underline;
}

@media (max-width : 1024px) {
    .form-bottom-copyright {
        display: none;
    }

    .form-bottom-copyright1 {
        display: block;
    }
}

/* --- CSS Animations --- */
@keyframes meshShift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.96);
    }
}

@keyframes waveDrift {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-40px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes waveDriftSlow {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: -40;
    }
}

@keyframes routeGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 1px rgba(208, 67, 36, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 4px rgba(208, 67, 36, 0.8));
    }
}

@keyframes travel {
    0% {
        offset-distance: 0%;
    }

    100% {
        offset-distance: 100%;
    }
}

@keyframes pulseDot {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes riseIn {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatA {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatB {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatC {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.animated-mesh-orange {
    animation: meshShift 18s ease-in-out infinite;
}

.animated-mesh-blue {
    animation: meshShift 22s ease-in-out infinite reverse;
}

.animated-wave-slow {
    animation: waveDriftSlow 26s linear infinite;
}

.animated-wave-normal {
    animation: waveDrift 20s linear infinite;
}

.animated-wave-support {
    animation: waveDrift 30s linear infinite;
}

.animated-route-stroke {
    animation: dash 5s linear infinite, routeGlow 3s ease-in-out infinite;
}

.animated-route-traveler {
    offset-path: path("M 20 360 C 150 340, 190 180, 320 175 S 500 110, 580 60");
    animation: travel 5s ease-in-out infinite;
}

.pulsing-dot {
    transform-origin: center;
    transform-box: fill-box;
    animation: pulseDot 2.6s ease-in-out infinite;
}


/* --- Responsive Viewports --- */
@media (max-width: 1120px) {
    .hero-pane {
        padding: 40px 32px;
    }

    .hero-heading {
        font-size: 34px;
    }

    .metric-card {
        min-width: 100%;
    }
}

@media (max-width: 1024px) {
    .split {
        flex-direction: column-reverse;
    }



    .form-pane {
        flex: 1 1 100%;
        padding: 24px 16px;
        min-height: auto;
    }

    .form-glass-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

/* --- OTP Input Styles --- */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s;
    background: #ffffff;
}

.otp-input:focus {
    border-color: var(--primary-coral);
    box-shadow: rgba(208, 67, 36, 0.12) 0px 0px 0px 4px;
    outline: none;
}

.otp-input.is-invalid {
    border-color: var(--accent-red) !important;
    box-shadow: rgba(239, 68, 68, 0.1) 0px 0px 0px 4px !important;
}

.resend-section {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--slate-muted);
}

.resend-link {
    color: var(--primary-coral);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resend-link:hover {
    color: var(--primary-coral-hover);
    text-decoration: underline;
}

.resend-link.disabled {
    color: var(--slate-muted);
    cursor: not-allowed;
    text-decoration: none;
}

.timer {
    color: var(--navy-dark);
    font-weight: 600;
}

/* --- Registration Form Grid & Custom Modal Additions --- */
.form-pane-card-wrapper.register-card-wrapper {
    max-width: 760px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.text-danger {
    color: var(--accent-red);
}

textarea.card-text-input {
    height: auto;
    height: 47px;
    resize: vertical;
    padding-top: 12px;
}

.custom-auth-modal .modal-content {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: rgba(15, 32, 58, 0.2) 0px 25px 60px;
}

.custom-auth-modal .modal-header {
    border-bottom: 1px solid var(--slate-border);
    padding: 20px 24px;
}

.custom-auth-modal .modal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--navy-dark);
    font-size: 20px;
}

.custom-auth-modal .modal-body {
    padding: 24px;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Custom Multi-step Registration Stepper --- */
.stepper-card-box {
    margin-bottom: 15px;
}

.stepper-wrapper {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0;
}

.stepper-track-bg {
    position: absolute;
    top: 16px;
    left: 25%;
    right: 25%;
    height: 3px;
    border-radius: 99px;
    background: #e5e7eb;
    z-index: 1;
}

.stepper-progress-fill {
    position: absolute;
    top: 16px;
    left: 25%;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--navy-dark), var(--primary-coral));
    transition: width 0.35s ease;
    width: 0%;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    flex: 0 0 auto;
    transition: all 0.25s ease;
    border: 2px solid #ffffff;
    color: #9ca3af;
    background: #eef2f6;
}

.step-circle .step-check {
    display: none;
}

.step-circle .step-num {
    display: inline-block;
}

/* Active State: Glowing ring + theme color */
.step-item.active .step-circle {
    color: #ffffff;
    border: none;
    background: linear-gradient(135deg, var(--navy-dark), #24457a);
    box-shadow: 0 0 0 5px rgba(15, 32, 58, 0.18), 0 4px 12px rgba(15, 32, 58, 0.25);
}

/* Completed State: Checkmark icon + green theme */
.step-item.completed .step-circle {
    color: #ffffff;
    border: none;
    background: var(--accent-green);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.step-item.completed .step-circle .step-num {
    display: none;
}

.step-item.completed .step-circle .step-check {
    display: block;
}

.step-info {
    text-align: center;
}

.step-title {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    line-height: 1.2;
    transition: color 0.2s;
}

.step-item.active .step-title,
.step-item.completed .step-title {
    color: #0F203A;
}

.step-subtitle {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.step-pane {
    display: none;
}

.step-pane.active {
    display: block;
    animation: riseIn 0.35s ease both;
}

.step-buttons-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.btn-step-back {
    background: #ffffff;
    color: var(--navy-dark);
    border: 1.5px solid #e2e8f0;
    padding: 14px 24px;
    border-radius: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-step-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--navy-dark);
}

/* --- Password Strength Bar & Requirement List Card --- */
.password-strength {
    margin: auto;
    margin-top: 8px;
    height: 4px;
    width: 95%;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--accent-red);
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--accent-green);
}

.password-req-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 16px;
    margin-bottom: 22px;
}

.password-req-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--slate-muted);
    transition: color 0.2s;
}

.password-requirements li .req-icon {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s;
}

.password-requirements li.valid {
    color: var(--navy-dark);
    font-weight: 600;
}

.password-requirements li.valid .req-icon {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #ffffff;
}

/* Utility Helper Classes */
.d-none {
    display: none;
}

/* Hide Browser Default Password Reveal Buttons */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}