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

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

    --portal-border: #e2e6ea;
    --portal-background: #f5f6f8;

    --portal-danger: #b93636;
    --portal-success: #19734c;
}

* {
    box-sizing: border-box;
}

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

body.portal-login {
    min-width: 320px;
    min-height: 100vh;

    margin: 0;

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

    color: var(--portal-text);

    background: var(--portal-background);
}

button,
input {
    font: inherit;
}

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

.portal-login__page {
    display: flex;

    min-height: 100vh;

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

    padding: 32px 20px;
}

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

.portal-login__card {
    width: 100%;
    max-width: 430px;

    padding: 38px;

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

    background: #fff;

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

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

.portal-login__brand-area {
    margin: -38px -38px 30px;

    padding: 24px 30px;

    border-radius: 14px 14px 0 0;

    background: #1c2146;

    text-align: center;
}

.portal-login__brand {
    display: inline-block;

    width: auto;
    max-width: 190px;

    margin: 0;
}

.portal-login__brand img {
    display: block;

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

    object-fit: contain;
}

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

.portal-login__header {
    margin-bottom: 27px;

    text-align: center;
}

.portal-login__header h1 {
    margin: 0;

    color: var(--portal-text);

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

    line-height: 1.2;
}

.portal-login__header p {
    margin: 8px 0 0;

    color: var(--portal-muted);

    font-size: 0.98rem;
}

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

.portal-login__form {
    display: grid;

    gap: 19px;
}

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

.portal-field label {
    display: block;

    margin-bottom: 7px;

    color: #404752;

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

.portal-field__label-row {
    display: flex;

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

    gap: 15px;
}

/*
|--------------------------------------------------------------------------
| Input
|--------------------------------------------------------------------------
*/

.portal-field__control {
    display: flex;

    align-items: center;

    height: 52px;

    overflow: hidden;

    border: 1px solid var(--portal-border);
    border-radius: 9px;

    background: #fff;

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

.portal-field__control:focus-within {
    border-color: var(--portal-primary);

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

.portal-field__control > i {
    width: 45px;

    flex-shrink: 0;

    color: #8a929d;

    text-align: center;

    font-size: 1rem;
}

.portal-field__control input {
    width: 100%;
    height: 50px;

    padding: 0 14px 0 0;

    border: 0;
    outline: 0;

    color: var(--portal-text);

    background: transparent;

    font-size: 0.98rem;
}

.portal-field__control input::placeholder {
    color: #a1a7af;
}

/*
|--------------------------------------------------------------------------
| Forgot Password
|--------------------------------------------------------------------------
*/

.portal-login__forgot {
    padding: 0;

    border: 0;

    color: #68717d;

    background: transparent;

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

    cursor: pointer;
}

.portal-login__forgot:hover {
    color: var(--portal-text);
}

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

.portal-button {
    display: inline-flex;

    width: 100%;
    min-height: 52px;

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

    gap: 9px;

    padding: 11px 18px;

    border: 0;
    border-radius: 9px;

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

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.portal-button--primary {
    margin-top: 2px;

    color: #242424;

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

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

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

/*
|--------------------------------------------------------------------------
| Register
|--------------------------------------------------------------------------
*/

.portal-login__register {
    margin-top: 23px;

    color: var(--portal-muted);

    text-align: center;

    font-size: 0.92rem;
}

.portal-login__register span {
    margin-right: 4px;
}

.portal-login__register a {
    color: var(--portal-text);

    font-weight: 700;

    text-decoration: none;
}

.portal-login__register a:hover {
    text-decoration: underline;
}

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

.portal-login__footer {
    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid #edf0f2;

    text-align: center;
}

.portal-login__website {
    display: inline-flex;

    max-width: 100%;

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

    gap: 7px;

    padding: 0;

    border: 0;

    color: #78818c;

    background: transparent;

    font-size: 0.88rem;

    cursor: pointer;

    overflow-wrap: anywhere;
}

.portal-login__website:hover {
    color: var(--portal-text);
}

/*
|--------------------------------------------------------------------------
| Alerts
|--------------------------------------------------------------------------
*/

.portal-alert {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-bottom: 20px;

    padding: 11px 13px;

    border-radius: 8px;

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

.portal-alert--success {
    color: var(--portal-success);

    background: #edf8f2;
}

.portal-alert--error {
    color: var(--portal-danger);

    background: #fff1f1;
}

/*
|--------------------------------------------------------------------------
| Focus
|--------------------------------------------------------------------------
*/

.portal-button:focus-visible,
.portal-login__forgot:focus-visible,
.portal-login__website:focus-visible {
    outline: 3px solid rgba(244, 176, 0, 0.35);

    outline-offset: 2px;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 575.98px) {

    .portal-login__page {
        align-items: flex-start;

        padding: 24px 14px;
    }

    .portal-login__card {
        padding: 28px 21px;

        border-radius: 12px;
    }

    .portal-login__brand-area {
        margin: -28px -21px 27px;

        padding: 20px 22px;

        border-radius: 12px 12px 0 0;
    }

    .portal-login__brand {
        max-width: 165px;
    }

    .portal-login__header h1 {
        font-size: 1.55rem;
    }

    .portal-login__header {
        margin-bottom: 24px;
    }

    .portal-field__label-row {
        gap: 8px;
    }

}

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

@media (max-width: 374.98px) {

    .portal-login__card {
        padding: 25px 17px;
    }

    .portal-field__label-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 3px;
    }

}