﻿:root {
    --p1: #5b2fe0;
    --p2: #9b6cff;
    --p3: #b56cff;
    --txt: #1a1f36;
    --muted: #666;
    --ok: #00c853;
    --bad: #ff4d4d;
    --card: rgba(255,255,255,.96);
    --glass: rgba(255,255,255,.08);
    --border: rgba(255,255,255,.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter',sans-serif
}

body {
    min-height: 100vh;
    background: url('../IMG/BK2.jpg') center/cover no-repeat fixed;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg,rgba(88,40,220,.85),rgba(155,108,255,.85));
    backdrop-filter: blur(7px);
    z-index: 0;
}

.register-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 1;
}

.register-wrapper {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 22px;
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: blur(20px);
    box-shadow: 0 45px 140px rgba(0,0,0,.35);
    border: 1px solid var(--border);
    animation: slideIn .75s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

/* Left Brand */
.register-brand {
    background: linear-gradient(160deg,rgba(123,63,228,.95),rgba(181,108,255,.95));
    color: #fff;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .register-brand:before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
        top: -160px;
        left: -160px;
        filter: blur(1px);
    }

    .register-brand:after {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        bottom: -220px;
        right: -220px;
    }

    .register-brand h1 {
        font-size: 40px;
        margin-bottom: 18px;
        font-weight: 800;
        position: relative;
        z-index: 1;
    }

    .register-brand p {
        opacity: .95;
        line-height: 1.9;
        font-size: 15px;
        position: relative;
        z-index: 1;
        max-width: 420px;
    }

.trust-row {
    margin-top: 26px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 12px;
    white-space: nowrap;
}

/* Right Form */
.register-form {
    padding: 60px 60px 55px;
    background: var(--card);
}

    .register-form h2 {
        font-size: 28px;
        color: var(--txt);
        margin-bottom: 8px;
    }

    .register-form p {
        color: var(--muted);
        margin-bottom: 20px;
    }

/* Wizard */
.wizard {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 0 26px;
}

.step {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #9aa0aa;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f2f4fb;
    border: 1px solid #eef0f7;
    transition: .25s;
}

    .step.active {
        color: #fff;
        font-weight: 700;
        background: linear-gradient(135deg,var(--p1),var(--p2));
        box-shadow: 0 10px 25px rgba(123,63,228,.25);
        border-color: transparent;
    }

/* Sections */
.step-panel {
    animation: fadeSlide .35s ease
}
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.input-box {
    position: relative;
}

    .input-box .fa {
        position: absolute;
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        color: var(--p1);
        font-size: 14px;
        opacity: .95;
    }

    .input-box input {
        width: 100%;
        padding: 14px 44px 14px 42px;
        border-radius: 10px;
        border: 1px solid #dfe3ef;
        font-size: 14px;
        transition: .25s;
        background: #fff;
    }

        .input-box input:focus {
            border-color: rgba(123,63,228,.8);
            box-shadow: 0 0 0 4px rgba(123,63,228,.15);
            outline: none;
        }

.toggle-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8a8fa0;
    font-size: 14px;
    user-select: none;
}

    .toggle-eye:hover {
        color: var(--p1)
    }

.hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8a8fa0;
    min-height: 16px;
}

    .hint.ok {
        color: var(--ok)
    }

    .hint.bad {
        color: var(--bad)
    }

.password-meter {
    height: 7px;
    background: #edf0f7;
    border-radius: 999px;
    overflow: hidden;
    margin: 10px 0 6px;
    border: 1px solid #e6e9f4;
}

#strengthBar {
    height: 100%;
    width: 0%;
    background: var(--bad);
    transition: .35s;
}

/* OTP */
.otp-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 10px 0 14px;
}

    .otp-row input {
        width: 52px;
        height: 54px;
        text-align: center;
        font-size: 18px;
        border-radius: 12px;
        border: 1px solid #dfe3ef;
        outline: none;
        transition: .2s;
    }

        .otp-row input:focus {
            border-color: rgba(123,63,228,.8);
            box-shadow: 0 0 0 4px rgba(123,63,228,.15);
        }

.otp-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: #7a7f8f;
}

    .otp-meta a {
        color: var(--p1);
        text-decoration: none;
        font-weight: 700;
    }

        .otp-meta a.disabled {
            opacity: .5;
            pointer-events: none;
        }

/* Buttons */
.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 14px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg,var(--p1),var(--p3));
    color: #fff;
    box-shadow: 0 15px 35px rgba(123,63,228,.35);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 55px rgba(123,63,228,.55)
    }

.btn-ghost {
    background: #f2f4fb;
    color: #2b2f45;
    border: 1px solid #e8ebf6;
}

    .btn-ghost:hover {
        transform: translateY(-2px)
    }

.login-link {
    margin-top: 18px;
    font-size: 13px;
    color: #555;
    text-align: center;
}

    .login-link a {
        color: var(--p1);
        font-weight: 800;
        text-decoration: none;
    }

/* Complete */
.complete-box {
    text-align: center;
    padding: 10px 0 5px;
}

.complete-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,rgba(0,200,83,.18),rgba(123,63,228,.12));
    border: 1px solid #e7f6ee;
}

    .complete-icon i {
        font-size: 34px;
        color: var(--ok)
    }

.complete-box h3 {
    color: var(--txt);
    margin-bottom: 8px;
    font-size: 22px
}

.complete-box p {
    color: #6b7183;
    line-height: 1.7
}

/* Mobile */
@media(max-width:980px) {
    .register-wrapper {
        grid-template-columns: 1fr;
        max-width: 720px
    }

    .register-brand {
        text-align: center;
        padding: 52px 36px
    }

    .register-form {
        padding: 44px 30px 40px
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .otp-row {
        justify-content: center;
        gap: 8px
    }

        .otp-row input {
            width: 48px
        }
}


.otp-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.otp-box {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid #dfe3ef;
    outline: none;
    transition: .2s;
}

    .otp-box:focus {
        border-color: #5b2fe0;
        box-shadow: 0 0 0 3px rgba(91,47,224,.2);
    }
