:root {
    --ink: #172033;
    --muted: #718096;
    --line: #e3e8f0;
    --blue: #3657d6;
    --blue-dark: #2946b9;
    --danger: #c53e4a;
    --surface: #fff;
    --bg: #f5f7fb
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font: 14px Arial, sans-serif
}

button,
input {
    font: inherit
}

button {
    border: 0;
    cursor: pointer
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background: url('../img/portal/login-bg.jpg') center/cover no-repeat
}

.login-page-atelier {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background: url('../img/atelier_bg.webp') center/cover no-repeat
}


.login-card {
    width: min(430px, 100%);
    padding: 42px 44px 27px;
    background: var(--surface);
    color: #fff;
    background-color: #343a40;
    border-radius: 16px;
}

.login-brand {
    text-align: center;
    margin-bottom: 32px
}

.login-brand img {
    display: block;
    margin: 0 auto 15px;
    object-fit: contain
}

.brand-name {
    font-size: 29px;
    font-weight: 700;
    margin: 0
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 5px 0 0
}

.login-copy {
    margin-bottom: 25px
}

.eyebrow {
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 8px
}

.login-copy h1 {
    font-size: 25px;
    letter-spacing: -.04em;
    margin: 0 0 7px
}

.login-copy p:last-child {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    margin: 0
}

.login-form label+input,
.password-field {
    margin-bottom: 18px
}

.login-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    outline: none;
    font-size: 13px;
    appearance: none
}

.login-form input:focus {
    border-color: #9eafea;
    box-shadow: 0 0 0 3px #edf1ff
}

.password-field {
    position: relative
}

.password-field input {
    padding-right: 58px;
    margin: 0
}

.password-field button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f4f6fa;
    color: var(--blue);
    border: 1px solid #e1e7f1;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 7px;
    transition: background .2s, border-color .2s
}

.password-field button:hover {
    background: #edf1ff;
    border-color: #b8c6ef
}

.password-field button:focus-visible,
.login-button:focus-visible {
    outline: 3px solid #cbd5ff;
    outline-offset: 2px
}

.login-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--blue);
    color: #fff;
    border: 1px solid var(--blue);
    border-radius: 8px;
    padding: 13px 17px;
    font-weight: 600;
    margin-top: 4px;
    box-shadow: 0 6px 14px #3657d62e;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .2s
}

.login-button:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: 0 8px 18px #3657d640;
    transform: translateY(-1px)
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px #3657d62e
}

.login-button span {
    font-size: 18px;
    line-height: 0
}

.login-message {
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 17px
}

.login-error {
    color: var(--danger);
    background: #fff0f1;
    border: 1px solid #f4c7cb
}

.login-maintenance {
    color: #8a6418;
    background: #fff8df;
    border: 1px solid #f1dc9a
}

.login-footer {
    border-top: 1px solid var(--line);
    color: #a0aec0;
    font-size: 10px;
    text-align: center;
    margin: 30px 0 0;
    padding-top: 18px
}

@media(max-width:480px) {
    .login-card {
        padding: 32px 24px 23px
    }

    .login-page {
        padding: 20px 14px
    }
}