:root {
    --register-primary: #f4b000;
    --register-primary-hover: #ffc126;

    --register-navy: #1c2146;

    --register-text: #202630;
    --register-muted: #737b86;

    --register-border: #e1e5ea;
    --register-background: #f5f6f8;

    --register-danger: #b93636;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.register-page {
    min-width: 320px;
    min-height: 100vh;

    margin: 0;

    color: var(--register-text);

    background: var(--register-background);

    font-family: "Source Sans 3", Arial, sans-serif;

    font-size: 16px;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}


/*
|--------------------------------------------------------------------------
| Page
|--------------------------------------------------------------------------
*/

.register-page__main {
    display: flex;

    min-height: 100vh;

    align-items: center;
    justify-content: center;

    padding: 35px 20px;
}


/*
|--------------------------------------------------------------------------
| Main Card
|--------------------------------------------------------------------------
*/

.register-card {
    width: 100%;
    max-width: 920px;

    overflow: hidden;

    border: 1px solid var(--register-border);
    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.05);
}


/*
|--------------------------------------------------------------------------
| Logo
|--------------------------------------------------------------------------
*/

.register-card__brand-area {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 115px;

    padding: 23px 30px;

    background: var(--register-navy);
}

.register-card__brand {
    display: block;

    width: auto;
    max-width: 190px;
}

.register-card__brand img {
    display: block;

    width: 100%;
    max-height: 70px;

    object-fit: contain;
}


/*
|--------------------------------------------------------------------------
| Body
|--------------------------------------------------------------------------
*/

.register-card__body {
    padding: 34px 40px 40px;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.register-card__header {
    margin-bottom: 25px;

    text-align: center;
}

.register-card__back {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 17px;

    color: #69727e;

    font-size: 0.9rem;
    font-weight: 600;

    text-decoration: none;
}

.register-card__back:hover {
    color: var(--register-text);
}

.register-card__header h1 {
    margin: 0;

    color: var(--register-text);

    font-size: 1.8rem;
    font-weight: 700;

    line-height: 1.2;
}

.register-card__header p {
    margin: 8px 0 0;

    color: var(--register-muted);

    font-size: 0.98rem;
}


/*
|--------------------------------------------------------------------------
| Information Notice
|--------------------------------------------------------------------------
*/

.register-notice {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-bottom: 28px;

    padding: 13px 15px;

    border: 1px solid #efe1b6;
    border-radius: 8px;

    color: #65531c;

    background: #fffaf0;

    font-size: 0.92rem;
}

.register-notice > i {
    margin-top: 2px;

    color: var(--register-primary);

    font-size: 1.05rem;
}

.register-notice div {
    display: grid;

    gap: 1px;
}

.register-notice strong {
    color: #4d421e;
}

.register-notice span {
    color: #756a49;
}


/*
|--------------------------------------------------------------------------
| Alert
|--------------------------------------------------------------------------
*/

.register-alert {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-bottom: 23px;

    padding: 12px 14px;

    border-radius: 8px;

    color: var(--register-danger);

    background: #fff1f1;

    font-size: 0.92rem;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.register-form {
    display: grid;

    gap: 27px;
}


/*
|--------------------------------------------------------------------------
| Sections
|--------------------------------------------------------------------------
*/

.register-form__section {
    padding-top: 2px;
}

.register-form__section + .register-form__section {
    padding-top: 25px;

    border-top: 1px solid #edf0f2;
}

.register-form__title {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 16px;

    color: #313946;

    font-size: 1.02rem;
    font-weight: 700;
}

.register-form__title i {
    color: var(--register-primary);

    font-size: 1.05rem;
}


/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.register-form__grid {
    display: grid;

    gap: 16px;
}

.register-form__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-form__grid--address {
    grid-template-columns: 2fr 1fr 1fr;

    margin-top: 16px;
}


/*
|--------------------------------------------------------------------------
| Fields
|--------------------------------------------------------------------------
*/

.register-field {
    min-width: 0;
}

.register-field label {
    display: block;

    margin-bottom: 7px;

    color: #414956;

    font-size: 0.9rem;
    font-weight: 600;
}

.register-field__optional {
    margin-left: 5px;

    color: #949ba4;

    font-size: 0.78rem;
    font-weight: 400;
}

.register-field input {
    width: 100%;
    height: 50px;

    padding: 0 13px;

    border: 1px solid var(--register-border);
    border-radius: 8px;

    outline: 0;

    color: var(--register-text);

    background: #fff;

    font-size: 0.96rem;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.register-field input:focus {
    border-color: var(--register-primary);

    box-shadow:
        0 0 0 3px rgba(244, 176, 0, 0.12);
}

.register-field input::placeholder {
    color: #a1a7af;
}

.register-field__error {
    display: block;

    margin-top: 6px;

    color: var(--register-danger);

    font-size: 0.84rem;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| CAPTCHA
|--------------------------------------------------------------------------
*/

.register-captcha {
    display: grid;

    grid-template-columns: 230px minmax(0, 1fr);

    align-items: end;

    gap: 18px;
}

.register-captcha__image-wrap {
    display: flex;

    min-height: 50px;

    align-items: stretch;

    overflow: hidden;

    border: 1px solid var(--register-border);
    border-radius: 8px;

    background: #fff;
}

.register-captcha__image {
    width: 100%;
    min-width: 0;
    height: 50px;

    object-fit: contain;
}

.register-captcha__reload {
    display: grid;

    width: 48px;

    flex-shrink: 0;

    place-items: center;

    padding: 0;

    border: 0;
    border-left: 1px solid var(--register-border);

    color: #5e6773;

    background: #f7f8f9;

    cursor: pointer;
}

.register-captcha__reload:hover {
    color: var(--register-text);

    background: #eef0f2;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.register-form__footer {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding-top: 25px;

    border-top: 1px solid #edf0f2;
}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.register-button {
    display: inline-flex;

    min-height: 50px;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 22px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 0.96rem;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.register-button--primary {
    min-width: 180px;

    color: #242424;

    background: var(--register-primary);
}

.register-button--primary:hover {
    color: #242424;

    background: var(--register-primary-hover);
}

.register-button--secondary {
    min-width: 100px;

    color: #4d5661;

    border-color: var(--register-border);

    background: #fff;
}

.register-button--secondary:hover {
    color: var(--register-text);

    border-color: #cbd1d8;

    background: #f7f8f9;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .register-page__main {
        align-items: flex-start;

        padding: 20px 14px;
    }

    .register-card {
        border-radius: 12px;
    }

    .register-card__brand-area {
        min-height: 95px;

        padding: 19px 22px;
    }

    .register-card__brand {
        max-width: 165px;
    }

    .register-card__body {
        padding: 28px 23px 30px;
    }

    .register-form__grid--two,
    .register-form__grid--address {
        grid-template-columns: 1fr;
    }

    .register-form__grid--address {
        margin-top: 16px;
    }

    .register-captcha {
        grid-template-columns: 1fr;
    }

    .register-captcha__image-wrap {
        max-width: 260px;
    }

}


/*
|--------------------------------------------------------------------------
| Phone
|--------------------------------------------------------------------------
*/

@media (max-width: 575.98px) {

    .register-card__header h1 {
        font-size: 1.55rem;
    }

    .register-card__body {
        padding: 25px 18px 27px;
    }

    .register-form {
        gap: 23px;
    }

    .register-form__section + .register-form__section {
        padding-top: 22px;
    }

    .register-form__footer {
        flex-direction: column-reverse;
    }

    .register-button {
        width: 100%;
    }

}