/* =========================================================
   ForYOU NEWS — Registration
   ========================================================= */


* {
    box-sizing: border-box;
}


html {
    font-size: 16px;
}


body {

    margin: 0;

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        #f5f7fa;

    color:
        #0b1f3a;

}


button,
input {
    font: inherit;
}


/* =========================================================
   PAGE
   ========================================================= */

.register-page {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 30px 20px;

}


/* =========================================================
   CARD
   ========================================================= */

.register-card {

    width: 100%;

    max-width: 720px;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.08);

    overflow: hidden;

}


/* =========================================================
   BRAND
   ========================================================= */

.register-brand {

    text-align: center;

    padding:
        38px
        30px
        28px;

    border-bottom:
        1px solid #e6e8ec;

}


.register-logo {

    width: 72px;

    height: 72px;

    object-fit: contain;

    display: block;

    margin:
        0 auto 12px;

}


.brand-name {

    display: flex;

    justify-content: center;

    align-items: baseline;

    gap: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}


.brand-for {

    font-size: 18px;

    color: #0b1f3a;

}


.brand-news {

    font-size: 28px;

    color: #d4a900;

}


.register-brand p {

    margin:
        12px
        0
        0;

    color: #65758b;

    font-size: 16px;

}


/* =========================================================
   CONTENT
   ========================================================= */

.register-content {

    padding:
        42px
        64px
        48px;

}


.register-content h1 {

    margin: 0;

    text-align: center;

    font-size: 38px;

    line-height: 1.2;

    color: #0b1f3a;

}


.register-intro {

    max-width: 580px;

    margin:
        14px
        auto
        32px;

    text-align: center;

    font-size: 17px;

    line-height: 1.6;

    color: #65758b;

}


/* =========================================================
   MESSAGE
   ========================================================= */

.auth-message {

    padding:
        14px
        16px;

    margin-bottom: 24px;

    border-radius: 12px;

    font-size: 15px;

    line-height: 1.5;

}


.auth-message.error {

    background: #fff1f1;

    border:
        1px solid #f3b5b5;

    color: #a51d1d;

}


.auth-message.success {

    background: #eefbf4;

    border:
        1px solid #bce8ce;

    color: #087443;

}


/* =========================================================
   FORM
   ========================================================= */

.form-group {

    margin-bottom: 22px;

}


.form-group label {

    display: block;

    margin-bottom: 9px;

    font-size: 15px;

    font-weight: 700;

    color: #16283e;

}


.form-group input {

    width: 100%;

    height: 54px;

    padding:
        0
        16px;

    border:
        1px solid #d5dce5;

    border-radius: 11px;

    background: #ffffff;

    color: #0b1f3a;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


.form-group input::placeholder {

    color: #98a5b5;

}


.form-group input:focus {

    border-color: #d4a900;

    box-shadow:
        0 0 0 3px
        rgba(212, 169, 0, 0.12);

}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-wrapper {

    position: relative;

}


.password-wrapper input {

    padding-right: 75px;

}


.password-toggle {

    position: absolute;

    top: 50%;

    right: 15px;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    color: #0b1f3a;

    font-weight: 700;

    cursor: pointer;

}


.password-toggle:hover {

    color: #b28d00;

}


.field-hint {

    display: block;

    margin-top: 7px;

    color: #7c8998;

    font-size: 13px;

}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter-option {

    margin:
        4px
        0
        20px;

}


.checkbox-label {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    cursor: pointer;

}


.checkbox-label input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

}


.custom-checkbox {

    width: 20px;

    height: 20px;

    flex: 0 0 20px;

    margin-top: 2px;

    border:
        2px solid #bdc6d2;

    border-radius: 5px;

    position: relative;

    transition:
        background .2s ease,
        border-color .2s ease;

}


.checkbox-label input:checked
+ .custom-checkbox {

    background: #d4a900;

    border-color: #d4a900;

}


.checkbox-label input:checked
+ .custom-checkbox::after {

    content: "";

    position: absolute;

    width: 5px;

    height: 10px;

    border:
        solid #ffffff;

    border-width:
        0
        2px
        2px
        0;

    transform:
        rotate(45deg);

    left: 6px;

    top: 2px;

}


.checkbox-text {

    color: #33465c;

    font-size: 14px;

    line-height: 1.5;

}


.checkbox-text small {

    display: block;

    margin-top: 3px;

    color: #7c8998;

    font-size: 13px;

}


/* =========================================================
   TERMS
   ========================================================= */

.terms-text {

    margin-bottom: 20px;

    color: #7c8998;

    font-size: 12px;

    line-height: 1.5;

}


/* =========================================================
   REGISTER BUTTON
   ========================================================= */

.register-button {

    width: 100%;

    height: 56px;

    border: 0;

    border-radius: 11px;

    background: #111111;

    color: #ffffff;

    font-weight: 700;

    font-size: 16px;

    cursor: pointer;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    transition:
        transform .15s ease,
        opacity .2s ease;

}


.register-button:hover {

    transform: translateY(-1px);

}


.register-button:disabled {

    cursor: not-allowed;

    opacity: .65;

    transform: none;

}


/* =========================================================
   SPINNER
   ========================================================= */

.spinner {

    width: 17px;

    height: 17px;

    border:
        2px solid
        rgba(255,255,255,.35);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;

}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   DIVIDER
   ========================================================= */

.divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        30px
        0;

}


.divider span {

    height: 1px;

    background: #e0e4e9;

    flex: 1;

}


.divider strong {

    font-size: 12px;

    color: #8793a1;

}


/* =========================================================
   GOOGLE
   ========================================================= */

.google-button {

    width: 100%;

    height: 54px;

    border:
        1px solid #d5dce5;

    border-radius: 11px;

    background: #ffffff;

    color: #111111;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    transition:
        background .2s ease,
        border-color .2s ease;

}


.google-button:hover {

    background: #f8f9fa;

    border-color: #bbc4cf;

}


.google-icon {

    font-size: 18px;

    font-weight: 800;

    color: #4285f4;

}


/* =========================================================
   LOGIN LINK
   ========================================================= */

.login-link {

    text-align: center;

    margin:
        28px
        0
        0;

    color: #65758b;

    font-size: 15px;

}


.login-link a {

    color: #0b1f3a;

    font-weight: 700;

    text-decoration: none;

}


.login-link a:hover {

    text-decoration: underline;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .register-page {

        padding:
            15px;

        align-items: flex-start;

    }


    .register-card {

        margin-top: 15px;

        border-radius: 18px;

    }


    .register-brand {

        padding:
            30px
            20px
            24px;

    }


    .register-logo {

        width: 64px;

        height: 64px;

    }


    .brand-news {

        font-size: 25px;

    }


    .register-content {

        padding:
            30px
            22px
            35px;

    }


    .register-content h1 {

        font-size: 30px;

    }


    .register-intro {

        font-size: 15px;

    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .register-content {

        padding:
            25px
            17px
            30px;

    }


    .register-content h1 {

        font-size: 27px;

    }


    .brand-for {

        font-size: 16px;

    }


    .brand-news {

        font-size: 22px;

    }

}