﻿/* =========================================================
                   RESET
                ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: radial-gradient( circle at 10% 10%, rgba(13, 110, 253, .12), transparent 28% ), radial-gradient( circle at 90% 90%, rgba(77, 163, 255, .10), transparent 30% ), #f4f8ff;
    color: #18324a;
}


/* =========================================================
                   MAIN PAGE
                ========================================================= */

.registration-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 18px;
    position: relative;
    overflow: hidden;
}


/* =========================================================
                   BACKGROUND DECORATION
                ========================================================= */

.registration-bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.registration-bg-circle-1 {
    width: 360px;
    height: 360px;
    top: -160px;
    left: -140px;
    background: radial-gradient( circle, rgba(13, 110, 253, .11), transparent 70% );
}

.registration-bg-circle-2 {
    width: 430px;
    height: 430px;
    right: -210px;
    bottom: -210px;
    background: radial-gradient( circle, rgba(77, 163, 255, .13), transparent 70% );
}


/* =========================================================
                   MAIN CARD
                ========================================================= */

.registration-card {
    width: 100%;
    max-width: 1000px;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 5;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, .10);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(13, 110, 253, .12), 0 10px 35px rgba(15, 23, 42, .07);
}


/* =========================================================
                   LEFT FORM
                ========================================================= */

.registration-form {
    padding: 42px 48px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient( 180deg, #ffffff, #fbfdff );
}


/* =========================================================
                   RIGHT IMAGE PANEL
                ========================================================= */

.login-side {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient( 145deg, #0b63ce, #0d6efd 50%, #4da3ff );
}

    .login-side::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(3, 32, 76, .10), rgba(3, 32, 76, .36) );
        z-index: 1;
    }

.login-side-image {
    width: 100%;
    height: 57%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: .96;
}


/* =========================================================
                   IMAGE OVERLAY CONTENT
                ========================================================= */

.login-side-content {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: linear-gradient( to top, rgba(4, 24, 52, .78), rgba(4, 24, 52, .05) 65% );
}

.login-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 30px;
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

    .login-side-badge i {
        color: #d8ebff;
    }

.login-side-content h2 {
    max-width: 390px;
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.15;
    color: #ffffff;
    font-weight: 800;
}

    .login-side-content h2 span {
        color: #b9dcff;
    }

.login-side-content p {
    max-width: 385px;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
}

.login-side-line {
    width: 70px;
    height: 3px;
    margin-top: 18px;
    border-radius: 20px;
    background: #ffffff;
}


/* =========================================================
                   LOGO
                ========================================================= */

.registration-logo {
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 21px;
    border: 1px solid rgba(13, 110, 253, .13);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(13, 110, 253, .11);
}

    .registration-logo img {
        width: 68px;
        height: 68px;
        object-fit: contain;
        display: block;
    }


/* =========================================================
                   HEADING
                ========================================================= */

.registration-heading {
    text-align: center;
    margin-bottom: 25px;
}

.registration-small-title {
    display: block;
    margin-bottom: 7px;
    color: #0d6efd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.registration-heading h1 {
    margin: 0;
    color: #18324a;
    font-size: 31px;
    line-height: 1.2;
    font-weight: 800;
}

    .registration-heading h1 span {
        display: block;
        color: #0d6efd;
    }


/* =========================================================
                   DECORATION
                ========================================================= */

.heading-decoration {
    width: 110px;
    margin: 13px auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .heading-decoration span {
        width: 38px;
        height: 2px;
        border-radius: 20px;
        background: linear-gradient( 90deg, #0d6efd, #4da3ff );
    }

    .heading-decoration b {
        width: 7px;
        height: 7px;
        display: block;
        border-radius: 50%;
        background: #4da3ff;
        box-shadow: 0 0 10px rgba(13, 110, 253, .30);
    }


/* =========================================================
                   DESCRIPTION
                ========================================================= */

.registration-heading p {
    max-width: 350px;
    margin: 0 auto;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 500;
}

.site-name-highlight {
    display: inline-block;
    margin: 0 2px;
    padding: 2px 8px;
    color: #0d6efd;
    font-weight: 800;
    border-radius: 6px;
    background: linear-gradient( 135deg, rgba(13, 110, 253, .07), rgba(77, 163, 255, .14) );
    border: 1px solid rgba(13, 110, 253, .08);
}


/* =========================================================
                   FIELD
                ========================================================= */

.registration-field {
    width: 100%;
    margin-bottom: 16px;
}

    .registration-field label {
        display: block;
        margin-bottom: 7px;
        color: #334155;
        font-size: 13px;
        font-weight: 700;
    }


/* =========================================================
                   INPUT
                ========================================================= */

.registration-input {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8e3ef;
    border-radius: 11px;
    overflow: hidden;
    transition: all .2s ease;
}

    .registration-input:focus-within {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, .08);
    }

.registration-input-icon {
    width: 49px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    background: #f0f6ff;
    border-right: 1px solid #e1eaf5;
    font-size: 15px;
}

.registration-input input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 13px;
    background: transparent;
    color: #1e293b;
    font-size: 14px;
}

    .registration-input input::placeholder {
        color: #94a3b8;
    }


/* =========================================================
                   PASSWORD TOGGLE
                ========================================================= */

.password-toggle {
    width: 45px;
    height: 100%;
    flex-shrink: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

    .password-toggle:hover {
        color: #0d6efd;
    }


/* =========================================================
                   REMEMBER / FORGOT
                ========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0 18px;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

    .remember-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.remember-box {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd8e8;
    border-radius: 5px;
    color: #ffffff;
    background: #ffffff;
    font-size: 9px;
    transition: all .2s ease;
}

.remember-option input:checked + .remember-box {
    background: linear-gradient( 135deg, #0d6efd, #4da3ff );
    border-color: #0d6efd;
}

.remember-text {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.forgot-password {
    color: #0d6efd;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

    .forgot-password:hover {
        text-decoration: underline;
    }


/* =========================================================
                   LOGIN BUTTON
                ========================================================= */

.registration-submit-btn {
    width: 100%;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    outline: 0;
    border-radius: 11px;
    background: linear-gradient( 135deg, #0d6efd, #287ff0 );
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(13, 110, 253, .21);
    transition: all .2s ease;
}

    .registration-submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 13px 27px rgba(13, 110, 253, .28);
    }

    .registration-submit-btn:disabled {
        opacity: .75;
        cursor: not-allowed;
        transform: none;
    }


/* =========================================================
                   DIVIDER
                ========================================================= */

.login-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 17px;
}

    .login-divider span {
        flex: 1;
        height: 1px;
        background: #e5ebf3;
    }

    .login-divider b {
        color: #94a3b8;
        font-size: 10px;
        letter-spacing: 1px;
    }


/* =========================================================
                   REGISTER
                ========================================================= */

.login-register-text {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

    .login-register-text a {
        color: #0d6efd;
        font-weight: 800;
        text-decoration: none;
        margin-left: 4px;
    }

        .login-register-text a:hover {
            text-decoration: underline;
        }


/* =========================================================
                   FOOTER
                ========================================================= */

.registration-footer {
    text-align: center;
    margin-top: 17px;
    color: #94a3b8;
    font-size: 10px;
}

    .registration-footer strong {
        color: #0d6efd;
    }


/* =========================================================
                   ERROR
                ========================================================= */

.error-message {
    display: none;
    margin-top: 6px;
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
}

.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .07) !important;
}


/* =========================================================
                   LOADER
                ========================================================= */

.registration-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 15, 30, .76);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.registration-loader-box {
    width: 180px;
    padding: 25px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.registration-loader-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    position: absolute;
    width: 56px;
    height: 56px;
    border: 4px solid #e7f0ff;
    border-top-color: #0d6efd;
    border-right-color: #4da3ff;
    border-radius: 50%;
    animation: loginSpin .8s linear infinite;
}

.spinner-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient( 135deg, #0d6efd, #4da3ff );
    color: #ffffff;
    font-size: 14px;
}

.registration-loader-title {
    color: #17324d;
    font-size: 14px;
    font-weight: 700;
}

.registration-loader-text {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}

@keyframes loginSpin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
                   TABLET
                ========================================================= */

@media (max-width: 850px) {

    .registration-card {
        max-width: 750px;
        grid-template-columns: 1fr;
    }

    .login-side {
        min-height: 300px;
        order: -1;
    }

    .login-side-content {
        padding: 35px;
        justify-content: flex-end;
    }

        .login-side-content h2 {
            font-size: 28px;
        }

    .registration-form {
        padding: 35px;
    }
}


/* =========================================================
                   MOBILE
                ========================================================= */

@media (max-width: 550px) {

    .registration-page {
        min-height: 100svh;
        padding: 10px;
    }

    .registration-card {
        max-width: 100%;
        display: block;
        border-radius: 22px;
    }

    .registration-form {
        padding: 27px 18px 22px;
    }

    .login-side {
        min-height: 220px;
        border-radius: 22px 22px 0 0;
    }

    .login-side-content {
        padding: 25px 20px;
    }

        .login-side-content h2 {
            font-size: 23px;
        }

        .login-side-content p {
            font-size: 12px;
        }

    .login-side-badge {
        margin-bottom: 9px;
    }

    .registration-logo {
        width: 74px;
        height: 74px;
    }

        .registration-logo img {
            width: 60px;
            height: 60px;
        }

    .registration-heading h1 {
        font-size: 27px;
    }

    .registration-heading p {
        font-size: 12px;
    }

    .registration-input {
        height: 49px;
    }

    .login-options {
        margin-bottom: 17px;
    }

    .remember-text,
    .forgot-password {
        font-size: 11px;
    }
}


/* =========================================================
                   VERY SMALL SCREEN
                ========================================================= */

@media (max-width: 370px) {

    .login-side {
        min-height: 190px;
    }

    .login-side-content h2 {
        font-size: 20px;
    }

    .login-side-content p {
        display: none;
    }

    .registration-form {
        padding: 23px 15px 20px;
    }
}
/* =========================================================
           CAPTCHA
        ========================================================= */

.login-captcha-image {
    min-width: 75px;
    height: 34px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eef5ff;
    color: #0d6efd;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
}

.captcha-refresh-btn {
    width: 38px;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0d6efd;
    cursor: pointer;
    font-size: 14px;
}

    .captcha-refresh-btn:hover {
        color: #0757c9;
    }

#txtLoginCaptcha {
    min-width: 0;
}
