:root {
    --primary-blue: #1a2b56;
    --primary-orange: #f36f21;
    --text-dark: #222;
    --text-gray: #666;
    --border-color: #d1d5db;
    --input-focus: #1a2b56;
    --bg-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.top-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 80px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 60px;
    z-index: 100;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 500;
    color: var(--primary-blue);
    font-size: 14px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.accessibility-icon {
    font-size: 20px;
    cursor: pointer;
}

/* Main Container */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Banner Section */
.banner-section {
    flex: 1.1;
    /* Slightly larger banner area */
    height: 100vh;
    position: sticky;
    top: 0;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Section */
.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    background: #fff;
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
    margin-top: 40px;
}

.brand-logo {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo img {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.form-header {
    margin-bottom: 35px;
}

.form-header h1 {
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 500;
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    color: #4b6cb7;
    font-size: 18px;
    cursor: pointer;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #fff;
    box-shadow: 0 0 0 1px var(--primary-blue);
}

::placeholder {
    color: #ccc;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 18px;
}

.helper-text {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-top: 5px;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 5px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-blue);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '\2713';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--primary-blue);
    line-height: 1.6;
    font-weight: 600;
}

.checkbox-group a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 700;
}

/* Button */
.btn-submit {
    background-color: var(--primary-orange);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(243, 111, 33, 0.2);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #e25a1b;
    box-shadow: 0 6px 20px rgba(243, 111, 33, 0.3);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Back Link & Auth Toggle */
.back-link,
.auth-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    margin-top: 25px;
}

.auth-toggle a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 800;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .top-nav {
        width: 100%;
        background: #fff;
        position: relative;
        height: 60px;
        padding: 0 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .auth-container {
        flex-direction: column;
    }

    .banner-section {
        display: none;
    }

    .form-section {
        padding: 40px 20px;
    }

    .form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 24px;
    }

    .btn-submit {
        border-radius: 12px;
    }
}

/* Multi-step Logic */
.form-step {
    display: none;
    flex-direction: column;
}

.form-step.active {
    display: flex;
}

#loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pulse-logo {
    width: 250px;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite ease-in-out;
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Animation keyframes (add these if you don't have them) */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Submit Loader */
#submit-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

/* Error Alert */
.error-alert {
    background: #fff1f0;
    border: 1px solid #ffa39e;
    padding: 12px 16px;
    border-radius: 8px;
    color: #cf1322;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Success State */
.success-header {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #52c41a;
    margin-bottom: 20px;
}

/* Password Validation Checklist */
.password-validation-checklist {
    margin-top: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.validation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
    font-weight: 500;
    transition: all 0.3s ease;
}

.validation-item i {
    font-size: 18px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.validation-item.valid {
    color: #000;
}

.validation-item.valid i {
    color: #00a651;
}

/* intl-tel-input Customization */
.iti {
    width: 100%;
    display: block;
}

.iti__flag-container {
    padding: 2px 10px;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type=text],
.iti--allow-dropdown input[type=tel],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type=text],
.iti--separate-dial-code input[type=tel] {
    padding-left: 95px !important;
    height: 52px;
    /* Matching other inputs */
    border-radius: 10px;
}

.iti input {
    width: 100% !important;
    background-color: #fcfcfc !important;
    border: 1px solid var(--border-color) !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
}

.iti input:focus {
    border-color: var(--primary-blue) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 1px var(--primary-blue) !important;
}