:root {
    --shell-ink: #1c2420;
    --shell-muted: #8d968f;
    --shell-line: #e4e7e4;
    --shell-canvas: #f3f5f4;
    --shell-bg: #f4f6f4;
    --shell-green: #17803d;
    --shell-green-dark: #146b34;
    --shell-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.auth-login {
    height: 100%;
    margin: 0;
}

body.auth-login {
    font-family: var(--shell-font);
    color: var(--shell-ink);
    background: var(--shell-canvas);
    -webkit-font-smoothing: antialiased;
}

.auth-login__layout {
    display: flex;
    min-height: 100%;
}

.auth-login__brand {
    display: none;
    flex: 1 1 50%;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    background:
        radial-gradient(120% 80% at 0% 100%, rgba(23, 128, 61, .22) 0%, transparent 55%),
        linear-gradient(165deg, #1c2420 0%, #243029 45%, #1a231f 100%);
    color: #fff;
}

@media (min-width: 992px) {
    .auth-login__brand {
        display: flex;
    }
}

.auth-login__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
}

.auth-login__brand-copy {
    max-width: 420px;
}

.auth-login__brand-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.auth-login__brand-text {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
}

.auth-login__brand-foot {
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    font-weight: 600;
}

.auth-login__panel {
    display: flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-login__card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 28px;
    border: 1px solid var(--shell-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(20, 28, 24, .06);
}

.auth-login__card-logo {
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.auth-login__card-logo--footer {
    margin: 28px 0 0;
    padding-top: 8px;
}

.auth-login__card-logo:focus {
    outline: none;
}

.auth-login__card-logo:focus-visible {
    border-radius: 12px;
    box-shadow: 0 0 0 3px rgba(23, 128, 61, .25);
}

.auth-login__card-logo img {
    display: block;
    max-width: min(168px, 72vw);
    height: auto;
    margin: 0 auto;
}

.auth-login__heading {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.auth-login__subheading {
    margin: 0 0 24px;
    color: var(--shell-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.auth-login__flash .alert {
    position: relative;
    margin: 0 0 16px;
    padding: 12px 36px 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    word-wrap: break-word;
}

.auth-login__flash .alert .close {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    opacity: .55;
    cursor: pointer;
}

.auth-login__flash .alert .close:hover {
    opacity: .85;
}

.auth-login__flash .alert-success {
    border-color: #b7e4c7;
    background: #edf9f0;
    color: #146b34;
}

.auth-login__flash .alert-danger,
.auth-login__flash .alert-error {
    border-color: #f5c2c0;
    background: #fdecec;
    color: #b42318;
}

.auth-login__flash .alert-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.auth-login__flash .alert-info {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.auth-login__field {
    margin-bottom: 16px;
}

.auth-login__label {
    display: block;
    margin-bottom: 8px;
    color: var(--shell-ink);
    font-size: 13px;
    font-weight: 700;
}

.auth-login__input-wrap {
    position: relative;
}

.auth-login__input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #9aa39c;
    pointer-events: none;
    transform: translateY(-50%);
}

.auth-login__input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--shell-line);
    border-radius: 12px;
    background: #fff;
    color: var(--shell-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-login__input::placeholder {
    color: #b0b8b2;
    font-weight: 500;
}

.auth-login__input:focus {
    border-color: #cfd6d1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 36, 32, .06);
}

.auth-login__field.is-invalid .auth-login__input {
    border-color: #f5c2c0;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .08);
}

.auth-login__error {
    display: block;
    margin-top: 8px;
    color: #b42318;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.auth-login__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    padding: 0 18px;
    border: 1px solid var(--shell-green-dark);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--shell-green) 0%, var(--shell-green-dark) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
    transition: filter .15s ease, transform .05s ease;
}

.auth-login__submit:hover,
.auth-login__submit:focus {
    filter: brightness(.96);
    outline: none;
}

.auth-login__submit:active {
    transform: translateY(1px);
}

.auth-login__submit:disabled {
    opacity: .7;
    cursor: wait;
}

@media (max-width: 575px) {
    .auth-login__panel {
        align-items: flex-start;
        padding-top: 28px;
    }

    .auth-login__card {
        padding: 24px 18px 22px;
        border-radius: 16px;
        box-shadow: none;
        border-color: transparent;
        background: transparent;
    }
}
