/* ===========================
   Registration Page Styles
   Uses theme variables from freight-services.css
   =========================== */

/* Main container */
.register-page {
    min-height: calc(100vh - 80px); /* Adjust based on navbar height */
    position: relative;
}

body {
    background-color: var(--fs-base, #F9FAFB); /* Theme background */
}

/* Typography Helpers (Left Panel) */
.reg-page-title {
    color: var(--fs-dark, #2D3E46);
    line-height: 1.2;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.reg-page-subtitle {
    color: var(--fs-dark, #2D3E46);
    opacity: 0.85;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Benefits List */
.reg-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.reg-benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--fs-dark, #2D3E46);
}

.reg-benefit-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 102, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fs-primary, #006699);
    flex-shrink: 0;
}

/* Info side (left) */
.register-info-side {
    position: relative;
    z-index: 2;
}

/* Right panel - form side */
.register-form-side {
    position: relative;
    z-index: 2;
}

.reg-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2rem 3rem;
}

@media (max-width: 768px) {
    .reg-card {
        padding: 2rem;
    }
}

/* Steps */
.register-step {
    display: none;
}

.register-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.register-form-container {
    width: 100%;
    /* max-width: 440px; */
}


/* Back button */
.register-back-btn {
    background: none;
    border: none;
    color: var(--fs-primary, #006699);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.register-back-btn:hover {
    color: var(--fs-primary-light, #0099cc);
}

/* Step header */
.register-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.register-step-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--fs-primary, #006699);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 102, 153, 0.2);
}

.register-step-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fs-dark, #2D3E46);
    margin: 0;
}

/* Step Progress Bar */
.register-progress-container {
    margin-bottom: 24px;
}

.register-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 8px;
}

.register-progress-fill {
    height: 100%;
    background: var(--fs-primary, #006699);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.register-step-indicator {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* Radio card list (Step 1) */
.reg-radio-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border-color: #e5e7eb !important;
}

.reg-radio-card:hover {
    border-color: var(--fs-primary, #006699) !important;
    box-shadow: 0 2px 10px rgba(0, 102, 153, 0.08);
}

.reg-radio-card.active {
    border-color: var(--fs-primary, #006699) !important;
    background-color: rgba(0, 102, 153, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.1);
}

/* Themed icon box for Step 1 type cards */
.acct-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background-color: rgba(0, 102, 153, 0.1);
    color: var(--fs-primary, #006699);
    font-size: 1.3rem;
    transition: background-color 0.2s ease;
}

.register-account-type.active .acct-icon-box {
    background-color: rgba(0, 102, 153, 0.18);
}

/* Next / Register button */
.register-btn {
    display: block;
    width: 100%;
    padding: 14px 28px;
    background: var(--fs-gradient-primary, linear-gradient(135deg, #0099cc 0%, #006699 100%));
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 153, 0.35);
    color: #fff;
}

.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Note text */
.register-note {
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 20px;
}

.register-note a {
    color: var(--fs-primary, #006699);
    text-decoration: underline;
}

/* Account type selection (individual/company) in step 2 */
.register-account-types {
    display: flex;
    gap: 12px;
}

.register-account-type {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #4b5563;
}

.register-account-type:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.register-account-type.active {
    border-color: var(--fs-primary, #006699);
    background: rgba(0, 102, 153, 0.03);
    color: var(--fs-dark, #2D3E46);
    box-shadow: 0 0 0 1px var(--fs-primary, #006699);
}

.register-account-type input[type="radio"] {
    display: none;
}

.register-account-type .acct-icon-fa {
    font-size: 1.1rem;
    margin-inline-end: 8px;
    transition: color 0.2s ease;
}

.register-account-type.active .acct-icon-fa {
    color: var(--fs-primary, #006699) !important;
}

.register-account-type span:not(.acct-icon-box) {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Icon box spacing */
.register-account-type .acct-icon-box {
    margin-inline-end: 12px;
    flex-shrink: 0;
}

.register-account-type .check-icon {
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    color: var(--fs-primary, #006699);
    margin-inline-start: 8px;
    flex-shrink: 0;
}

.register-account-type.active .check-icon {
    opacity: 1;
    transform: scale(1);
}


/* Form fields */
.register-form .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.register-form .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-form .form-control:focus {
    border-color: var(--fs-primary, #006699);
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.1);
}

.register-form .form-control.bg-light {
    background-color: #f9fafb !important;
}

/* Password toggle */
.register-form .password-toggle {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    inset-inline-end: 14px;
    cursor: pointer;
    color: #9ca3af;
    z-index: 10;
    padding: 4px;
}

.register-form .password-toggle:hover {
    color: var(--fs-primary, #006699);
}

/* Error alerts */
.register-form .alert-danger {
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Hide validation icons (ticks/checkmarks) */
.was-validated .form-control:valid,
.was-validated .form-control:invalid,
.was-validated .form-select:valid,
.was-validated .form-select:invalid {
    background-image: none !important;
    padding-right: .75rem !important;
    padding-left: .75rem !important;
}

/* Login link */
.register-login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

.register-login-link a {
    color: var(--fs-primary, #006699);
    font-weight: 600;
    text-decoration: none;
}

.register-login-link a:hover {
    text-decoration: underline;
}

/* Animation for step transitions */
.register-step {
    display: none;
}

.register-step.active {
    display: block;
    animation: registerFadeIn 0.3s ease-out;
}

@keyframes registerFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .register-w-md-50 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 767px) {
    .register-info-side {
        display: none;
    }

    .register-form-side {
        padding: 30px 20px;
    }

    .register-split-card {
        min-height: auto;
    }

    .register-account-types {
        flex-direction: column;
    }

    .register-step-header h3 {
        font-size: 1.15rem;
    }
}

/* RTL Support */
[dir="rtl"] .register-step-indicator {
    padding-left: 0;
    /* padding-right: 42px; */
}

[dir="rtl"] .form-control {
    text-align: right !important;
}

[dir="rtl"] .form-control::placeholder {
    text-align: right !important;
}


