:root {
    color-scheme: light;
    --page-bg: #edf1f6;
    --panel-bg: #ffffff;
    --text: #1f2933;
    --muted: #697386;
    --border: #cfd7e3;
    --accent: #ff6c2c;
    --accent-dark: #d94e16;
    --focus: #2b78c6;
    --error-bg: #fff2f0;
    --error-text: #a32619;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(180deg, #f7f9fc 0%, var(--page-bg) 52%, #dfe6ef 100%);
    color: var(--text);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(100%, 410px);
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 18px 42px rgba(37, 47, 63, 0.18);
    padding: 34px 34px 28px;
}

.brand-mark {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1;
}

.admin-sso-panel p {
    overflow-wrap: anywhere;
}

img.main-logo {
    height: 50px;
}

h1 {
    margin: 0 0 24px;
    color: #2e3948;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

.login-error {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #f1b6ae;
    border-radius: 4px;
    background: var(--error-bg);
    color: var(--error-text);
    font-size: 14px;
    line-height: 1.35;
}

.login-form,
.locale-form {
    display: grid;
    gap: 8px;
}

.login-form label,
.locale-form label {
    color: var(--muted);
    font-size: 13px;
}

.login-form input,
.locale-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #b9c4d1;
    border-radius: 3px;
    background: #fff;
    color: var(--text);
    font-size: 16px;
}

.login-form input {
    margin-bottom: 10px;
    padding: 8px 11px;
}

.locale-form select {
    padding: 7px 10px;
}

.login-form input:focus,
.locale-form select:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(43, 120, 198, 0.16);
    outline: none;
}

button {
    min-height: 43px;
    margin-top: 5px;
    border: 1px solid var(--accent-dark);
    border-radius: 3px;
    background: linear-gradient(180deg, #ff7d43 0%, var(--accent) 100%);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

button:hover {
    background: linear-gradient(180deg, #ff8b57 0%, #f26022 100%);
}

.locale-form {
    grid-template-columns: 1fr;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e3e8ef;
}

@media (max-width: 460px) {
    .login-shell {
        padding: 16px;
        align-items: start;
    }

    .login-panel {
        margin-top: 28px;
        padding: 28px 22px 22px;
    }
}
