/*
Přihlašovací stránka (login.php) a stránky obnovy hesla (forgot_password.php,
reset_password.php). Styly byly dřív přímo v login.php. Tyto stránky schválně
nenačítají společný assets/css/ui.css, aby se přihlášení zobrazilo co nejdřív;
vše potřebné je tady.
*/

/* Firemní písmo Rubik (soubory v assets/fonts, nic se nenačítá z internetu) */
@font-face {
    font-family:'Rubik';
    font-style:normal;
    font-weight:400 800;
    font-display:swap;
    src:url('../fonts/rubik-latin-ext.woff2') format('woff2');
    unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family:'Rubik';
    font-style:normal;
    font-weight:400 800;
    font-display:swap;
    src:url('../fonts/rubik-latin.woff2') format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Plné pozadí bez přechodů (firemní CI) */
body {
    margin:0;
    font-family:Rubik, "Segoe UI", Arial, sans-serif;
    background:#121e2a;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
}

.login-card {
    position:relative;
    z-index:1;
    width:100%;
    box-sizing:border-box;
    padding:36px;
    border-radius:22px;
    background:rgba(15,23,42,.82);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(16px);
    box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.login-shell {
    position:relative;
    z-index:1;
    width:380px;
    max-width:calc(100% - 32px);
    box-sizing:border-box;
}

.login-theme-row {
    display:block;
    margin-bottom:12px;
}

.login-theme-toggle {
    width:100%;
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:9px;
    min-height:46px;
    padding:0 16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(15,23,42,.72);
    color:#d8e0ea;
    font-size:12px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(0,0,0,.22);
    transition:border-color .18s ease, background .18s ease, color .18s ease;
}

.login-theme-toggle:hover {
    transform:none;
    border-color:rgba(194,178,144,.45);
    background:rgba(30,41,59,.86);
}

.login-theme-copy {
    display:inline-flex;
    align-items:center;
    gap:9px;
    min-width:0;
}

.login-theme-icon {
    position:relative;
    display:grid;
    width:17px;
    height:17px;
    flex:0 0 17px;
    place-items:center;
    transform-origin:center center;
}

.login-theme-icon svg {
    grid-area:1 / 1;
    width:17px;
    height:17px;
    opacity:0;
    transform:scale(.82);
    transform-origin:center center;
    transition:opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}

html[data-theme="light"] .login-theme-icon-sun,
html:not([data-theme="light"]) .login-theme-icon-moon {
    opacity:1;
    transform:scale(1);
}

.login-theme-toggle.theme-toggle-animate .login-theme-toggle-track::after {
    animation:themeKnobPop .34s cubic-bezier(.2,.8,.2,1);
}

html[data-theme="light"] .login-theme-toggle.theme-toggle-animate .login-theme-icon-sun {
    animation:themeIconSpinInLight .34s cubic-bezier(.2,.8,.2,1);
}

html:not([data-theme="light"]) .login-theme-toggle.theme-toggle-animate .login-theme-icon-moon {
    animation:themeIconSpinInDark .34s cubic-bezier(.2,.8,.2,1);
}

.login-theme-toggle-track {
    position:relative;
    width:32px;
    height:18px;
    flex:0 0 auto;
    border-radius:999px;
    background:rgba(194,178,144,.32);
}

.login-theme-toggle-track::after {
    content:'';
    position:absolute;
    top:3px;
    left:3px;
    width:12px;
    height:12px;
    border-radius:50%;
    background:#BDAC8E;
    transition:transform .18s ease, background .18s ease;
}

html[data-theme="light"] .login-theme-toggle-track::after {
    transform:translateX(14px);
    background:#2f3a4b;
}

@keyframes themeIconSpinInLight {
    from {
        opacity:0;
        transform:rotate(-115deg) scale(.78);
    }

    to {
        opacity:1;
        transform:rotate(0deg) scale(1);
    }
}

@keyframes themeIconSpinInDark {
    from {
        opacity:0;
        transform:rotate(115deg) scale(.78);
    }

    to {
        opacity:1;
        transform:rotate(0deg) scale(1);
    }
}

@keyframes themeKnobPop {
    0%, 100% {
        box-shadow:none;
    }

    45% {
        box-shadow:0 0 0 5px rgba(189,172,142,.20);
    }
}

.login-weather {
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    align-items:center;
    margin-bottom:12px;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(15,23,42,.68);
    color:#d8e0ea;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
}

/*
Počasí při načítání: obrys kopíruje hotový widget (název stanice, výběr,
dva řádky popisu, zdroj, teplota), aby po načtení nic neposkočilo.
Při načítání drží výšku widgetu obrys sám, skutečný obsah je schovaný.
*/
.login-weather-skeleton {
    position:relative;
    grid-column:1 / -1;
    display:none;
    grid-template-columns:minmax(0,1fr) 76px;
    gap:12px;
    align-items:start;
    min-height:112px;
    pointer-events:none;
    overflow:hidden;
    --skeleton-line:rgba(148,163,184,.20);
    --skeleton-strong:rgba(148,163,184,.30);
    --skeleton-accent:rgba(189,172,142,.40);
    --skeleton-shine:rgba(255,255,255,.22);
}

.login-weather-skeleton-main {
    display:grid;
    gap:9px;
    min-width:0;
}

.login-weather-skeleton-line {
    display:block;
    height:11px;
    border-radius:6px;
    background:var(--skeleton-line);
}

.login-weather-skeleton-line.is-location {
    width:62px;
    height:10px;
    margin-top:2px;
    background:var(--skeleton-accent);
}

.login-weather-skeleton-line.is-select {
    width:100%;
    height:34px;
    border-radius:8px;
    background:var(--skeleton-strong);
}

/* dva řádky popisu: každý je samostatný proužek */
.login-weather-skeleton-line.is-summary {
    position:relative;
    width:100%;
    height:30px;
    border-radius:0;
    background:none;
    animation:none;
}

.login-weather-skeleton-line.is-summary::before,
.login-weather-skeleton-line.is-summary::after {
    content:"";
    position:absolute;
    left:0;
    height:10px;
    border-radius:6px;
}

.login-weather-skeleton-line.is-summary::before {
    top:0;
    width:100%;
    animation-delay:.24s;
}

.login-weather-skeleton-line.is-summary::after {
    top:18px;
    width:62%;
    animation-delay:.36s;
}

.login-weather-skeleton-line.is-source {
    width:34%;
    height:8px;
    background:var(--skeleton-line);
}

.login-weather-skeleton-temp {
    justify-self:end;
    align-self:center;
    width:72px;
    height:30px;
    border-radius:8px;
    background:var(--skeleton-strong);
}

/* odlesk běží v každém proužku zvlášť, ne přes celý rámeček */
.login-weather-skeleton-line,
.login-weather-skeleton-temp,
.login-weather-skeleton-line.is-summary::before,
.login-weather-skeleton-line.is-summary::after {
    background-image:linear-gradient(100deg, transparent 30%, var(--skeleton-shine) 50%, transparent 70%);
    background-repeat:no-repeat;
    background-size:220% 100%;
    background-position:120% 0;
    animation:weatherSkeletonLine 1.5s ease-in-out infinite;
}

.login-weather-skeleton-line.is-summary::before,
.login-weather-skeleton-line.is-summary::after {
    background-color:var(--skeleton-line);
}

.login-weather-skeleton-line.is-select { animation-delay:.12s; }
.login-weather-skeleton-line.is-source { animation-delay:.48s; }
.login-weather-skeleton-temp { animation-delay:.3s; }

@keyframes weatherSkeletonLine {
    0% { background-position:120% 0; }
    100% { background-position:-120% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .login-weather-skeleton-line,
    .login-weather-skeleton-temp,
    .login-weather-skeleton-line.is-summary::before,
    .login-weather-skeleton-line.is-summary::after {
        animation:none !important;
    }
}

@media (min-width:1000px) {
    /* v tmavém firemním panelu má obrys světlé tóny v obou režimech */
    html body.login-split .login-weather-skeleton {
        --skeleton-line:rgba(255,255,255,.11);
        --skeleton-strong:rgba(255,255,255,.16);
        --skeleton-accent:rgba(189,172,142,.45);
        --skeleton-shine:rgba(255,255,255,.14);
    }
}

.login-weather-main {
    min-width:0;
}

.login-weather-location {
    display:block;
    margin-bottom:4px;
    color:#BDAC8E;
    font-size:12px;
    font-weight:700;
}

.login-weather-select {
    width:100%;
    min-height:34px;
    margin:0 0 8px;
    padding:7px 10px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.10);
    background:#111c2f;
    color:#ffffff;
    outline:none;
    font-size:13px;
}

.login-weather-select:focus {
    border-color:rgba(244,214,45,.45);
    box-shadow:0 0 0 2px rgba(244,214,45,.12);
}

.login-weather-summary {
    display:block;
    color:#d8e0ea;
    font-size:13px;
    line-height:1.35;
}

.login-weather-source {
    display:block;
    margin-top:5px;
    color:#94a3b8;
    font-size:11px;
    line-height:1.3;
}

.login-weather-temp {
    color:#ffffff;
    font-size:26px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
}

.login-weather.is-loading .login-weather-skeleton {
    display:grid;
}

.login-weather.is-loading > :not(.login-weather-skeleton) {
    display:none;
}

.logo {
    text-align:center;
    margin-bottom:26px;
}

.logo-mark {
    width:180px;
    height:54px;

    margin:0 auto 30px;

    display:flex;
    justify-content:center;
    align-items:center;
}

.login-theme-logo {
    display:block;
    width:100%;
    height:100%;
    background-image:url("../logo_shadeon_white.png?v=3");
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;

    filter:
        drop-shadow(0 10px 28px rgba(214,169,25,.18));
}

html[data-theme="light"] .login-theme-logo {
    background-image:url("../logo_shadeon_black.png?v=3");
}

.logo h1 {
    margin:0;
    color:#BDAC8E;
    letter-spacing:2px;
    font-size:28px;
}

.sub {
    margin:8px 0 0;
    opacity:.72;
    font-size:14px;
    min-height:20px;
}

.sub.typewriter-active::after {
    content:"";
    display:inline-block;
    width:1px;
    height:1em;
    margin-left:3px;
    vertical-align:-2px;
    background:currentColor;
    animation:typewriterCaret .8s steps(1,end) infinite;
}

@keyframes typewriterCaret {
    0%, 45% { opacity:1; }
    46%, 100% { opacity:0; }
}

@media (prefers-reduced-motion: reduce) {
    .login-theme-toggle.theme-toggle-animate .login-theme-icon-sun,
    .login-theme-toggle.theme-toggle-animate .login-theme-icon-moon,
    .login-theme-toggle.theme-toggle-animate .login-theme-toggle-track::after,
    .sub.typewriter-active::after {
        animation:none !important;
    }

    .login-theme-icon svg,
    .login-theme-toggle-track::after {
        transition:none !important;
    }
}

.error {
    background:rgba(239,68,68,.16);
    border:1px solid rgba(239,68,68,.35);
    color:#fecaca;
    padding:13px;
    border-radius:14px;
    margin-bottom:18px;
    font-size:14px;
}

label {
    display:block;
    font-size:13px;
    opacity:.78;
    margin-bottom:8px;
}

input {
    width:100%;
    box-sizing:border-box;
    padding:13px 14px;
    margin-bottom:16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.07);
    background:#111c2f;
    color:white;
    outline:none;
    font-size:14px;
}

input:focus {
    border-color:rgba(244,214,45,.45);
    box-shadow:0 0 0 2px rgba(244,214,45,.12);
}

button[type="submit"] {
    width:100%;
    padding:14px;
    border:none;
    border-radius:14px;
    background-color:#BDAC8E;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
    font-size:15px;
}

button[type="submit"]:hover {
    transform:translateY(-1px);
}

.footer-text {
    margin-top:18px;
    text-align:center;
    color:#94a3b8;
    font-size:12px;
}

.login-version {
    display:block;
    margin-top:8px;
    color:#64748b;
    font-size:11px;
    font-weight:700;
}

html[data-theme="light"] body {
    background:#dedcd7;
    color:#141a22;
}

html[data-theme="light"] .login-card {
    background:rgba(255,255,255,.88);
    border-color:rgba(47,58,75,.13);
    box-shadow:0 22px 55px rgba(47,58,75,.16);
}

html[data-theme="light"] .login-theme-toggle {
    background:#ffffff;
    border-color:rgba(47,58,75,.14);
    color:#2f3a4b;
    box-shadow:0 10px 22px rgba(47,58,75,.12);
}

html[data-theme="light"] .login-weather {
    background:#ffffff;
    border-color:rgba(47,58,75,.14);
    color:#2f3a4b;
    box-shadow:0 10px 22px rgba(47,58,75,.10);
}

html[data-theme="light"] .login-weather-summary {
    color:#56616f;
}

html[data-theme="light"] .login-weather-select {
    background:#f8fafc;
    border-color:rgba(47,58,75,.16);
    color:#141a22;
}

html[data-theme="light"] .login-weather-source {
    color:#64748b;
}

html[data-theme="light"] .login-weather-temp {
    color:#141a22;
}

html[data-theme="light"] .sub,
html[data-theme="light"] label,
html[data-theme="light"] .footer-text {
    color:#56616f;
    opacity:1;
}

html[data-theme="light"] input {
    background:#f8fafc;
    border-color:rgba(47,58,75,.16);
    color:#141a22;
}

html[data-theme="light"] input:focus {
    border-color:rgba(194,178,144,.85);
    box-shadow:0 0 0 3px rgba(194,178,144,.18);
}

html[data-theme="light"] button[type="submit"] {
    color: white;
}

html[data-theme="light"] .error {
    background:#fff1f2;
    border-color:#fecdd3;
    color:#9f1239;
}

@media(max-width:480px) {
    .login-shell {
        max-width:calc(100% - 28px);
    }

    .login-card {
        padding:26px 24px;
    }

    .login-weather {
        padding:13px 14px;
    }

    .login-weather-skeleton {
        grid-template-columns:minmax(0,1fr) 68px;
        gap:10px;
    }

    .login-weather-skeleton-line.is-source {
        display:none;
    }

    .logo h1 {
        font-size:24px;
    }
}

/*
Zapomenuté heslo a nastavení nového hesla (forgot_password.php, reset_password.php)
a odkaz a hlášky obnovy hesla na přihlášení. Větší a tmavší text kvůli čitelnosti.
*/

.auth-logo .logo-mark {
    margin-bottom:18px;
}

.logo .auth-heading {
    margin:0;
    color:#ffffff;
    font-size:24px;
    line-height:1.3;
    letter-spacing:0;
}

.auth-text {
    margin:0 0 18px;
    color:#e2e8f0;
    font-size:15px;
    line-height:1.55;
}

.auth-card label {
    font-size:15px;
    font-weight:700;
    opacity:1;
    color:#e2e8f0;
}

.auth-card input {
    font-size:16px;
}

.auth-account {
    margin:0 0 16px;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.10);
    color:#e2e8f0;
    font-size:15px;
    line-height:1.45;
    overflow-wrap:anywhere;
}

.auth-account strong {
    color:#ffffff;
}

.auth-card .error {
    font-size:15px;
    line-height:1.5;
}

.notice {
    padding:14px 15px;
    border-radius:14px;
    margin-bottom:18px;
    font-size:15px;
    line-height:1.5;
}

.notice-success {
    background:rgba(34,197,94,.16);
    border:1px solid rgba(34,197,94,.40);
    color:#bbf7d0;
}

.notice-local {
    background:rgba(250,204,21,.14);
    border:1px solid rgba(250,204,21,.50);
    color:#fef08a;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.notice-local a {
    color:inherit;
    font-weight:700;
    text-decoration:underline;
}

.auth-rules {
    margin:-4px 0 16px;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(189,172,142,.10);
    border:1px solid rgba(189,172,142,.30);
    color:#e2e8f0;
    font-size:14px;
    line-height:1.5;
}

.auth-rules strong {
    display:block;
    margin-bottom:4px;
    color:#d8c9a9;
}

.auth-rules ul {
    margin:0;
    padding-left:20px;
}

.auth-links {
    display:grid;
    gap:12px;
    margin-top:18px;
    text-align:center;
    font-size:15px;
}

.auth-link {
    color:#d8c9a9;
    font-weight:700;
    text-decoration:underline;
    text-underline-offset:3px;
}

.auth-link:hover,
.auth-link:focus-visible {
    color:#ffffff;
}

.auth-button-link {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    box-sizing:border-box;
    min-height:48px;
    padding:12px 14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.16);
    background:rgba(15,23,42,.60);
    color:#e2e8f0;
    font-size:15px;
    font-weight:700;
    text-decoration:none;
}

.auth-button-link.is-primary {
    border-color:#BDAC8E;
    background:#BDAC8E;
    color:#ffffff;
}

.auth-button-link:hover {
    border-color:rgba(194,178,144,.60);
}

html[data-theme="light"] .logo .auth-heading {
    color:#141a22;
}

html[data-theme="light"] .auth-text,
html[data-theme="light"] .auth-card label {
    color:#1f2937;
}

html[data-theme="light"] .auth-account {
    background:#f8fafc;
    border-color:rgba(47,58,75,.16);
    color:#1f2937;
}

html[data-theme="light"] .auth-account strong {
    color:#141a22;
}

html[data-theme="light"] .notice-success {
    background:#ecfdf3;
    border-color:#86d9a8;
    color:#14532d;
}

html[data-theme="light"] .notice-local {
    background:#fef9c3;
    border-color:#e2b714;
    color:#422006;
}

html[data-theme="light"] .auth-rules {
    background:#f3efe6;
    border-color:#d7c7a7;
    color:#1f2937;
}

html[data-theme="light"] .auth-rules strong {
    color:#5b4a2b;
}

html[data-theme="light"] .auth-link {
    color:#5b4a2b;
}

html[data-theme="light"] .auth-link:hover,
html[data-theme="light"] .auth-link:focus-visible {
    color:#141a22;
}

html[data-theme="light"] .auth-button-link {
    background:#ffffff;
    border-color:rgba(47,58,75,.22);
    color:#141a22;
}

html[data-theme="light"] .auth-button-link.is-primary {
    background:#BDAC8E;
    border-color:#BDAC8E;
    color:#ffffff;
}

@media(max-width:480px) {
    .logo .auth-heading {
        font-size:21px;
    }
}

/* ==================================================================
   Přihlášení na širokém okně: vlevo firemní panel s logem a počasím,
   vpravo jen přihlašovací formulář. Na užším okně panel není
   a stránka vypadá jako dřív.
   ================================================================== */
.login-brand,
.login-card-title {
    display:none;
}

@media (min-width:1000px) {
    body.login-split {
        display:block;
    }

    body.login-split .login-shell {
        display:grid;
        grid-template-columns:minmax(0,46fr) minmax(0,54fr);
        grid-template-rows:auto 1fr auto;
        width:100%;
        max-width:none;
        min-height:100vh;
    }

    body.login-split .login-brand {
        position:relative;
        grid-column:1;
        grid-row:1 / span 3;
        display:flex;
        flex-direction:column;
        padding:52px 60px 190px;
        overflow:hidden;
        background:linear-gradient(155deg,#38332c 0%,#1c1a17 100%);
        color:#ffffff;
    }

    /* jemné lamely žaluzie v pozadí panelu */
    body.login-split .login-brand::before {
        content:"";
        position:absolute;
        inset:0;
        background:repeating-linear-gradient(180deg, rgba(189,172,142,.13) 0 2px, transparent 2px 30px);
        -webkit-mask-image:linear-gradient(100deg, transparent 35%, #000 100%);
        mask-image:linear-gradient(100deg, transparent 35%, #000 100%);
        pointer-events:none;
    }

    /* pískový proužek na hraně panelu */
    body.login-split .login-brand::after {
        content:"";
        position:absolute;
        inset:0 0 0 auto;
        width:4px;
        background:#BDAC8E;
    }

    .login-brand-logo {
        position:relative;
        display:block;
        width:250px;
        height:62px;
        background:url("../logo_shadeon_white.png?v=3") left center / contain no-repeat;
    }

    .login-brand-text {
        position:relative;
        margin:auto 0;
        padding:40px 0;
    }

    body.login-split .login-brand-kicker {
        display:inline-block;
        margin-bottom:18px;
        padding:6px 12px;
        border:1px solid rgba(189,172,142,.5);
        border-radius:999px;
        color:#BDAC8E !important;
        font-size:13px;
        font-weight:600;
        letter-spacing:.14em;
        text-transform:uppercase;
    }

    body.login-split .login-brand h2 {
        margin:0;
        color:#ffffff !important;
        font-size:52px;
        font-weight:800;
        line-height:1.06;
        letter-spacing:-.02em;
    }

    body.login-split .login-brand h2 em {
        display:block;
        color:#BDAC8E !important;
        font-style:normal;
    }

    body.login-split .login-brand p {
        max-width:440px;
        margin:20px 0 0;
        color:#e3ded5 !important;
        font-size:19px;
        line-height:1.5;
    }

    .login-brand ul {
        display:grid;
        gap:14px;
        margin:32px 0 0;
        padding:0;
        list-style:none;
    }

    body.login-split .login-brand li {
        display:flex;
        align-items:center;
        gap:12px;
        color:#f4f1ec !important;
        font-size:17px;
    }

    .login-brand li::before {
        content:"";
        flex:0 0 26px;
        width:26px;
        height:26px;
        border-radius:50%;
        background:rgba(189,172,142,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BDAC8E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
    }

    /* počasí je dole ve firemním panelu, v obou režimech tmavé */
    html body.login-split .login-weather {
        grid-column:1;
        grid-row:3;
        align-self:end;
        justify-self:start;
        z-index:2;
        width:min(430px, calc(100% - 120px));
        margin:0 0 48px 60px;
        border:1px solid rgba(255,255,255,.14);
        border-radius:14px;
        background:rgba(255,255,255,.07);
        box-shadow:none;
    }

    html body.login-split .login-weather-location {
        color:#BDAC8E;
    }

    html body.login-split .login-weather-summary {
        color:#e3ded5;
    }

    html body.login-split .login-weather-source {
        color:#b3aca0;
    }

    html body.login-split .login-weather-temp {
        color:#ffffff;
    }

    html body.login-split .login-weather-select {
        border-color:rgba(255,255,255,.2) !important;
        background-color:#2a2622 !important;
        color:#ffffff !important;
    }

    html body.login-split .login-weather-select option {
        background-color:#2a2622 !important;
        color:#ffffff !important;
    }

    body.login-split .login-theme-row {
        grid-column:2;
        grid-row:1;
        justify-self:end;
        width:250px;
        margin:22px 28px 0;
    }

    body.login-split .login-card {
        grid-column:2;
        grid-row:2 / span 2;
        align-self:center;
        justify-self:center;
        width:min(460px,86%);
        margin:24px 0 70px;
        padding:40px 40px 32px;
    }

    /* logo je vlevo v panelu, na kartě ho nahrazuje nadpis */
    body.login-split .login-card .logo {
        margin-bottom:24px;
        text-align:left;
    }

    body.login-split .login-card .logo-mark {
        display:none;
    }

    /* název systému je vlevo v panelu, v patičce karty by byl podruhé */
    body.login-split .footer-system-name {
        display:none;
    }

    body.login-split .login-card-title {
        display:block;
        margin:0;
        font-size:32px;
        font-weight:800;
        line-height:1.15;
        letter-spacing:-.01em;
    }

    body.login-split .login-card .sub {
        margin-top:8px;
        font-size:16px;
    }

    /* stránky hesla: bez počasí, nadpis stránky místo loga na kartě */
    body.login-split-plain .login-brand {
        padding-bottom:52px;
    }

    body.login-split .login-card .auth-heading {
        font-size:32px;
        font-weight:800;
        line-height:1.15;
        letter-spacing:-.01em;
    }

    body.login-split .login-card label {
        font-size:15.5px;
        font-weight:600;
    }

    body.login-split .login-card input {
        min-height:52px;
        font-size:16.5px;
    }

    body.login-split .login-card button[type="submit"] {
        min-height:54px;
        font-size:17px;
        font-weight:700;
    }
}

/* nižší okno (notebook): panel se zmenší, aby se počasí dole vešlo celé */
@media (min-width:1000px) and (max-height:860px) {
    body.login-split .login-brand {
        padding:34px 48px 170px;
    }

    body.login-split-plain .login-brand {
        padding-bottom:34px;
    }

    .login-brand-logo {
        width:210px;
        height:52px;
    }

    .login-brand-text {
        padding:16px 0;
    }

    body.login-split .login-brand-kicker {
        margin-bottom:12px;
    }

    body.login-split .login-brand h2 {
        font-size:42px;
    }

    body.login-split .login-brand p {
        margin-top:14px;
        font-size:17px;
    }

    .login-brand ul {
        gap:10px;
        margin-top:20px;
    }

    body.login-split .login-brand li {
        font-size:16px;
    }

    html body.login-split .login-weather {
        margin:0 0 28px 48px;
        width:min(430px, calc(100% - 96px));
    }

    body.login-split .login-card {
        margin:12px 0 28px;
        padding:30px 36px 24px;
    }
}

@media (min-width:1000px) and (max-height:700px) {
    .login-brand ul {
        display:none;
    }
}

/* ==================================================================
   Základ převzatý ze společného stylu aplikace (ui.css), který se
   na těchto stránkách nenačítá: písmo, pole, tlačítka, ikony.
   ================================================================== */
*,
*::before,
*::after {
    box-sizing:border-box;
}

body,
button,
input,
select,
textarea {
    font-family:Rubik, "Segoe UI", Arial, sans-serif;
}

input,
textarea,
select {
    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:8px !important;
    background:rgba(2,6,23,.42) !important;
    color:#f8fafc !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color:rgba(194,178,144,.72) !important;
    box-shadow:0 0 0 3px rgba(194,178,144,.14) !important;
}

button {
    border-radius:8px !important;
    font-family:inherit;
}

.ui-has-icon {
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.ui-action-icon {
    color:currentColor;
    pointer-events:none;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2 {
    color:#141a22 !important;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background:#f9fafb !important;
    color:#141a22 !important;
    border-color:rgba(25,33,44,.22) !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color:#64748b;
}

/* ==================================================================
   Oznámení pro všechny (includes/announcements.php)
   ================================================================== */
.announcement-bar {
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    column-gap:12px;
    row-gap:4px;
    margin:0 0 18px;
    padding:12px 10px 14px 16px;
    border:0;
    border-left:4px solid var(--ann-chip);
    border-radius:8px;
    background:var(--ann-bg);
    color:#e5e7eb;
    font-size:16px;
    line-height:1.5;
}

.announcement-bar[hidden] {
    display:none;
}

.announcement-info { --ann-bg:rgba(59,130,246,.10); --ann-chip:#3b82f6; --ann-label:#93c5fd; }
.announcement-warning { --ann-bg:rgba(249,115,22,.10); --ann-chip:#f97316; --ann-label:#fdba74; }
.announcement-outage { --ann-bg:rgba(239,68,68,.10); --ann-chip:#ef4444; --ann-label:#fca5a5; }
html[data-theme="light"] .announcement-bar { color:#1f2937; }
html[data-theme="light"] .announcement-info { --ann-bg:#eef4fe; --ann-chip:#2563eb; --ann-label:#1e40af; }
html[data-theme="light"] .announcement-warning { --ann-bg:#fff4e8; --ann-chip:#ea580c; --ann-label:#9a3412; }
html[data-theme="light"] .announcement-outage { --ann-bg:#fdefef; --ann-chip:#dc2626; --ann-label:#991b1b; }

/* druh oznámení jako malý nadpis nad textem, křížek vpravo nahoře */
.announcement-label {
    grid-column:1;
    color:var(--ann-label);
    font-size:13px;
    font-weight:700;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.announcement-text {
    grid-column:1;
    min-width:0;
    font-weight:500;
}

.announcement-close {
    grid-column:2;
    grid-row:1 / span 2;
    align-self:start;
    width:32px;
    height:32px;
    margin-top:-4px;
    border:0;
    border-radius:6px;
    background:transparent;
    color:inherit;
    font-size:22px;
    line-height:1;
    cursor:pointer;
}

.announcement-close:hover {
    background:rgba(127,127,127,.18);
}

.announcement-login {
    margin-bottom:20px;
    font-size:15px;
}
