/* =====================================================
   REGISTER PAGE
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f5f8fb;
    color: #273347;
}

a {
    text-decoration: none;
}


/* =====================================================
   MAIN
===================================================== */

.register-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns: 48% 52%;
}


/* =====================================================
   LEFT VISUAL
===================================================== */

.register-visual {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #125589,
            #1769aa 55%,
            #4a9bc9
        );
}


/* =====================================================
   DECORATION
===================================================== */

.register-decoration {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.12);
}

.decoration-one {
    width: 500px;
    height: 500px;

    top: -190px;
    right: -180px;
}

.decoration-two {
    width: 420px;
    height: 420px;

    bottom: -190px;
    left: -170px;
}


/* =====================================================
   VISUAL CONTENT
===================================================== */

.register-visual-content {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    padding: 55px 70px;

    display: flex;

    flex-direction: column;
}


/* =====================================================
   LOGO
===================================================== */

.register-logo {
    width: max-content;

    display: flex;

    align-items: center;

    gap: 12px;

    color: #ffffff;
}

.register-logo-icon {
    width: 45px;
    height: 45px;

    border-radius: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.15);

    border: 1px solid rgba(255,255,255,.18);

    font-size: 19px;
}

.register-logo-text {
    display: flex;

    flex-direction: column;
}

.register-logo-text span {
    font-size: 8px;

    letter-spacing: 1.3px;

    opacity: .85;
}

.register-logo-text strong {
    font-size: 20px;

    letter-spacing: 1px;
}


/* =====================================================
   INTRO
===================================================== */

.register-intro {
    max-width: 530px;

    margin-top: auto;

    margin-bottom: 45px;
}

.register-label {
    display: inline-block;

    color: rgba(255,255,255,.8);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 15px;
}

.register-intro h1 {
    color: #ffffff;

    font-size: 42px;

    line-height: 1.2;

    font-weight: 800;

    margin-bottom: 18px;
}

.register-intro h1 span {
    color: #d7efff;
}

.register-intro p {
    max-width: 470px;

    color: rgba(255,255,255,.78);

    font-size: 13px;

    line-height: 1.8;
}


/* =====================================================
   BENEFITS
===================================================== */

.register-benefits {
    display: flex;

    gap: 15px;
}

.benefit-item {
    flex: 1;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 13px;

    border-radius: 10px;

    background: rgba(255,255,255,.09);

    border: 1px solid rgba(255,255,255,.12);
}

.benefit-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    border-radius: 7px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.14);

    color: #ffffff;

    font-size: 12px;
}

.benefit-item > div:last-child {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.benefit-item strong {
    color: #ffffff;

    font-size: 9px;
}

.benefit-item span {
    color: rgba(255,255,255,.62);

    font-size: 7px;

    line-height: 1.4;
}


/* =====================================================
   RIGHT FORM
===================================================== */

.register-form-section {
    min-height: 100vh;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;
}

.register-form-wrapper {
    width: 100%;

    max-width: 420px;
}


/* =====================================================
   BACK
===================================================== */

.register-back {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #8a95a4;

    font-size: 10px;

    margin-bottom: 35px;

    transition: .3s;
}

.register-back:hover {
    color: #1769aa;
}

.register-back i {
    font-size: 9px;
}


/* =====================================================
   HEADING
===================================================== */

.register-heading {
    margin-bottom: 25px;
}

.mobile-register-logo {
    display: none;
}

.register-heading h2 {
    color: #172033;

    font-size: 28px;

    line-height: 1.3;

    font-weight: 800;

    margin-bottom: 8px;
}

.register-heading p {
    color: #8792a1;

    font-size: 11px;

    line-height: 1.7;
}


/* =====================================================
   FORM
===================================================== */

.register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-group > label {
    display: block;

    color: #364154;

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 7px;
}


/* =====================================================
   INPUT
===================================================== */

.register-input {
    position: relative;

    height: 46px;

    display: flex;

    align-items: center;

    border: 1px solid #dce4eb;

    border-radius: 8px;

    background: #ffffff;

    transition: .3s;
}

.register-input:focus-within {
    border-color: #1769aa;

    box-shadow:
        0 0 0 3px rgba(23,105,170,.08);
}

.register-input > i {
    width: 43px;

    text-align: center;

    color: #9ba5b2;

    font-size: 12px;
}

.register-input input {
    width: 100%;

    height: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: #273347;

    font-family: inherit;

    font-size: 11px;

    padding-right: 40px;
}

.register-input input::placeholder {
    color: #b0b8c2;
}


/* =====================================================
   TOGGLE PASSWORD
===================================================== */

.register-toggle-password {
    position: absolute;

    right: 0;

    width: 43px;

    height: 100%;

    border: none;

    background: transparent;

    color: #929daa;

    cursor: pointer;

    transition: .3s;
}

.register-toggle-password:hover {
    color: #1769aa;
}


/* =====================================================
   TERMS
===================================================== */

.terms-wrapper {
    margin: 18px 0;
}

.terms-label {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    color: #7b8797;

    font-size: 9px;

    line-height: 1.6;

    cursor: pointer;
}

.terms-label input {
    position: absolute;

    opacity: 0;
}

.terms-check {
    width: 15px;
    height: 15px;

    flex-shrink: 0;

    margin-top: 1px;

    border: 1px solid #ccd5de;

    border-radius: 4px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.terms-label input:checked + .terms-check {
    background: #1769aa;

    border-color: #1769aa;
}

.terms-label input:checked + .terms-check::after {
    content: "✓";

    color: #ffffff;

    font-size: 9px;

    font-weight: 800;
}

.terms-label a {
    color: #1769aa;

    font-weight: 600;
}


/* =====================================================
   MESSAGE
===================================================== */

.register-message {
    display: none;

    padding: 9px 11px;

    border-radius: 7px;

    font-size: 9px;

    line-height: 1.5;

    margin-bottom: 14px;
}

.register-message.error {
    display: block;

    color: #b13d3d;

    background: #fff1f1;

    border: 1px solid #f5d0d0;
}

.register-message.success {
    display: block;

    color: #277c4e;

    background: #effaf3;

    border: 1px solid #cfeeda;
}


/* =====================================================
   REGISTER BUTTON
===================================================== */

.register-button {
    width: 100%;

    height: 46px;

    border: none;

    border-radius: 8px;

    background: #1769aa;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}

.register-button:hover {
    background: #125589;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(23,105,170,.18);
}

.register-button i {
    font-size: 10px;
}

.register-button.loading {
    pointer-events: none;

    opacity: .75;
}

.register-button.loading i {
    animation:
        registerSpin .8s linear infinite;
}

@keyframes registerSpin {

    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =====================================================
   LOGIN PROMPT
===================================================== */

.login-prompt {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 5px;

    margin-top: 18px;

    font-size: 10px;
}

.login-prompt span {
    color: #8a95a4;
}

.login-prompt a {
    color: #1769aa;

    font-weight: 700;
}

.login-prompt a:hover {
    text-decoration: underline;
}


/* =====================================================
   DIVIDER
===================================================== */

.register-divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 20px 0;
}

.register-divider::before,
.register-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #e8edf1;
}

.register-divider span {
    color: #adb5bf;

    font-size: 9px;
}


/* =====================================================
   GUEST
===================================================== */

.guest-register {
    height: 43px;

    border: 1px solid #dce4eb;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    color: #5f6b7b;

    font-size: 10px;

    font-weight: 600;

    transition: .3s;
}

.guest-register:hover {
    border-color: #1769aa;

    color: #1769aa;

    background: #f8fbfd;
}

.guest-register i {
    color: #1769aa;
}


/* =====================================================
   COPYRIGHT
===================================================== */

.register-copyright {
    text-align: center;

    color: #b2bac4;

    font-size: 8px;

    margin-top: 25px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .register-page {
        grid-template-columns: 42% 58%;
    }

    .register-visual-content {
        padding: 40px;
    }

    .register-intro h1 {
        font-size: 32px;
    }

    .register-benefits {
        flex-direction: column;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .register-page {
        display: block;
    }

    .register-visual {
        display: none;
    }

    .register-form-section {
        min-height: 100vh;

        padding: 30px 22px;
    }

    .register-form-wrapper {
        max-width: 450px;
    }

    .mobile-register-logo {
        width: 45px;
        height: 45px;

        margin-bottom: 17px;

        display: flex;

        align-items: center;

        justify-content: center;

        border-radius: 10px;

        background: #1769aa;

        color: #ffffff;

        font-size: 18px;

        box-shadow:
            0 8px 20px rgba(23,105,170,.18);
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

    .register-form-section {
        padding: 25px 18px;
    }

    .register-heading h2 {
        font-size: 24px;
    }

}