﻿
:root {
    --saffron: #E07B28;
    --saffron-lt: #F5A24A;
    --gold: #C47A1E;
    --pale: #FEF3E8;
    --ivory: #FDFAF5;
    --ink: #1C1005;
    --ink-2: #4A3520;
    --ink-3: #9A826A;
    --border: #EAD8C4;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(224,123,40,.13);
    --shadow-lg: 0 16px 48px rgba(224,123,40,.2);
}

.agent-reg-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0800 0%, #3a1500 40%, #1a0800 100%);
    margin-top: var(--mtop);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

    .agent-reg-page::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(224,123,40,.18) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(196,122,30,.15) 0%, transparent 50%);
        pointer-events: none;
    }

.reg-circles span {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(224,123,40,.15);
    pointer-events: none;
}

.reg-circles .c1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
}

.reg-circles .c2 {
    width: 180px;
    height: 180px;
    bottom: 60px;
    right: 10%;
    border-color: rgba(245,162,74,.2);
}

.reg-circles .c3 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 5%;
    border-color: rgba(224,123,40,.3);
    animation: regSpin 20s linear infinite;
}

@keyframes regSpin {
    to {
        transform: rotate(360deg);
    }
}

.reg-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.reg-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
}

/* LEFT PANEL */
.reg-lhs {
    background: linear-gradient(160deg, #3a1a00 0%, #7a3a00 60%, #4a2200 100%);
    padding: 56px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .reg-lhs::before {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: rgba(224,123,40,.12);
        bottom: -100px;
        right: -80px;
        pointer-events: none;
    }

    .reg-lhs .brand {
        position: relative;
    }

        .reg-lhs .brand img {
            width: 180px;
            margin-bottom: 28px;
        }

    .reg-lhs h2 {
        font-family: 'Playfair Display', serif;
        font-size: 32px;
        font-weight: 700;
        color: #fff;
        line-height: 1.3;
        margin-bottom: 14px;
    }

        .reg-lhs h2 em {
            color: var(--saffron-lt);
            font-style: normal;
            display: block;
        }

    .reg-lhs p {
        color: rgba(255,255,255,.65);
        font-size: 14px;
        line-height: 1.7;
    }

    .reg-lhs .perks {
        margin-top: 32px;
        position: relative;
        list-style: none;
        padding: 0;
        margin-left: 0;
    }

        .reg-lhs .perks li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 14px;
            color: rgba(255,255,255,.8);
            font-size: 14px;
        }

            .reg-lhs .perks li .perk-ic {
                width: 28px;
                height: 28px;
                min-width: 28px;
                background: rgba(224,123,40,.25);
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 13px;
                color: var(--saffron-lt);
            }

.lhs-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: url('../images/login-bg.png') repeat-x bottom;
    background-size: 220px;
    opacity: .25;
    animation: movehor 4000s linear infinite;
}

/* RIGHT PANEL */
.reg-rhs {
    padding: 50px 48px;
    overflow-y: auto;
}

    .reg-rhs .form-tit {
        margin-bottom: 28px;
    }

        .reg-rhs .form-tit h3 {
            font-family: 'Playfair Display', serif;
            font-size: 26px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 4px;
        }

        .reg-rhs .form-tit p {
            font-size: 13px;
            color: var(--ink-3);
            margin: 0;
        }

            .reg-rhs .form-tit p a {
                color: var(--saffron);
                font-weight: 600;
            }

.step-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
}

    .step-bar .step {
        flex: 1;
        height: 4px;
        border-radius: 8px;
        background: var(--border);
        transition: background .4s;
    }

        .step-bar .step.done {
            background: var(--saffron);
        }

.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--ink-3);
    margin: 20px 0 12px;
    display: block;
}

.form-group-custom {
    margin-bottom: 18px;
}

    .form-group-custom label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--ink-2);
        margin-bottom: 6px;
    }

.input-wrap {
    position: relative;
}

    .input-wrap i.fi {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--ink-3);
        font-size: 14px;
        pointer-events: none;
    }

.form-control-ag {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px 11px 38px;
    font-size: 14px;
    font-family: Poppins, sans-serif;
    color: var(--ink);
    background: var(--ivory);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    box-sizing: border-box;
}

    .form-control-ag:focus {
        border-color: var(--saffron);
        box-shadow: 0 0 0 3px rgba(224,123,40,.12);
        background: #fff;
    }

    .form-control-ag::placeholder {
        color: var(--ink-3);
    }

    .form-control-ag.no-icon {
        padding-left: 14px;
    }

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 22px;
}

    .terms-row input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-top: 2px;
        accent-color: var(--saffron);
        cursor: pointer;
        flex-shrink: 0;
    }

    .terms-row label {
        font-size: 13px;
        color: var(--ink-3);
        cursor: pointer;
    }

        .terms-row label a {
            color: var(--saffron);
            font-weight: 600;
        }

.btn-register {
    width: 100%;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 6px 20px rgba(224,123,40,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(224,123,40,.5);
    }

    .btn-register .btn-spinner {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,.3);
        border-top-color: #fff;
        animation: regSpinBtn .7s linear infinite;
        display: none;
    }

    .btn-register.loading .btn-spinner {
        display: block;
    }

    .btn-register.loading .btn-label {
        display: none;
    }

@keyframes regSpinBtn {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

    .divider span {
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .divider b {
        font-size: 12px;
        color: var(--ink-3);
        white-space: nowrap;
    }

.social-login {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    border: 1.5px solid var(--border);
    background: var(--ivory);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-social:hover {
        border-color: var(--saffron);
        background: var(--pale);
    }

.password-strength {
    margin-top: 6px;
}

.strength-bar {
    height: 4px;
    border-radius: 8px;
    background: var(--border);
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    border-radius: 8px;
    transition: width .3s, background .3s;
    width: 0%;
}

.strength-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 768px) {
    .reg-card {
        grid-template-columns: 1fr;
    }

    .reg-lhs {
        padding: 36px 28px 80px;
    }

    .reg-rhs {
        padding: 36px 24px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .reg-lhs h2 {
        font-size: 24px;
    }
}

