/* flexi-login.css */
/* FlexiPP Login Styler - STK Dark Mode v3.0 (odvozeno z design systému STK Nymburk Zálabí) */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800;900&family=Karla:wght@400;500;700&display=swap');

:root {
    --stk-red: #b9331e;
    --stk-red-hover: #d03a22;
    --stk-olive: #9fa615;
    --stk-olive-light: #b7bf2a;
    --stk-bg: #141516;
    --stk-card: #222426;
    --stk-input: #2b2d30;
    --stk-border: #3a3d41;
    --stk-text: #f2f2f2;
    --stk-text-muted: #a9adb3;
}

/* ---------- Skryté prvky (beze změny) ---------- */
div#caps-warning {
    color: var(--stk-olive);
    padding-top: 9px;
}

div#caps-warning svg {
    display: none;
}

.language-switcher {
    display: none;
}

span.caps-warning-text,
.privacy-policy-page-link {
    display: none;
}

/* ---------- Pozadí stránky ---------- */
body.login {
    background: linear-gradient(160deg, #1b1c1e 0%, #141516 55%, #101112 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 20px 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Karla', sans-serif;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Jemné barevné záře v pozadí (červená + olivová) */
body.login::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(185, 51, 30, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(159, 166, 21, 0.12) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

body.login::after {
    content: none;
}

/* Skryjeme výchozí logo WordPress */
.login h1 {
    display: none;
}

/* ---------- Hlavní kontejner ---------- */
#login {
    width: 450px;
    max-width: 90%;
    padding: 0;
    position: relative;
    z-index: 10;
    animation: floatIn 0.8s ease-out;
}

@keyframes floatIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* ---------- Karta formuláře ---------- */
.login form {
    position: relative;
    background: var(--stk-card);
    border-radius: 20px;
    padding: 40px 40px;
    border: 1px solid var(--stk-border);
    /* signature stín z design systému – barevné „podtržení“ pod boxem */
    box-shadow: 0 16px 0 -8px var(--stk-red),
                0 30px 60px rgba(0, 0, 0, 0.55);
    margin: 0;
}

p#backtoblog {
    margin: 10px 0 15px 0 !important;
}

/* Kruh s ikonou */
.login form::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--stk-red);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(185, 51, 30, 0.4);
}

/* Ikona uživatele v kruhu */
.login form::after {
    content: '';
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Hlavní nadpis */
.login form h2 {
    text-align: center;
    color: var(--stk-text);
    font-family: 'Rubik', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 40px 0;
    letter-spacing: -0.5px;
}

/* ---------- Labely ---------- */
.login label {
    display: block;
    color: var(--stk-text-muted);
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

/* Kontejner inputů */
.login .user-pass-wrap,
.login p:not(.forgetmenot):not(.submit) {
    position: relative;
    margin: 0 0 0 0;
}

/* ---------- Inputy ---------- */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background-color: var(--stk-input);
    border: 1px solid var(--stk-border);
    border-radius: 10px;
    color: var(--stk-text);
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    background-color: #303337;
    border-color: var(--stk-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 51, 30, 0.25);
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder,
.login input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Ikony před inputy (olivové) */
.login #user_login,
.login #user_email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239fa615' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 20px 20px;
}

.login #user_pass {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239fa615' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 20px 20px;
}

/* Tlačítko pro zobrazení hesla */
.login .wp-pwd {
    position: relative;
}

.login .wp-pwd input[type="password"],
.login .wp-pwd input[type="text"] {
    padding-right: 54px;
}

.login .wp-pwd button,
.login .wp-pwd .button.wp-hide-pw {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--stk-olive) !important;
    position: absolute !important;
    right: 8px !important;
    top: 39% !important;
    transform: translateY(-50%);
    height: 36px !important;
    width: 36px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
}

.login .wp-pwd button:hover {
    color: var(--stk-olive-light) !important;
}

/* ---------- Remember Me ---------- */
 
.login form .forgetmenot {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 40px;
    font-weight: 400;
    float: left;
    margin-bottom: 13px !important;
    margin-left: 22px;
}
 

.login .forgetmenot label {
    display: flex;
    align-items: center;
    color: var(--stk-text-muted);
    font-size: 14px;
    cursor: pointer;
    gap: 10px;
    float: none;
    margin: 0;
    padding: 0;
}

.login .forgetmenot input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--stk-red);
    cursor: pointer;
    margin: 0;
    float: none;
}

/* ---------- Submit tlačítko (primární červené CTA) ---------- */
.login .submit {
    float: none;
    margin: 0;
    padding: 0;
}

.login #wp-submit {
    float: none;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 14px 16px;
    line-height: 1.3;
    background: var(--stk-red);
    border: 0 none;
    border-radius: 15px;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(185, 51, 30, 0.3);
    letter-spacing: 0.5px;
}

.login #wp-submit:hover {
    background: var(--stk-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(185, 51, 30, 0.4);
}

.login #wp-submit:active {
    transform: translateY(0);
}

/* ---------- Odkazy pod formulářem ---------- */
.login #nav,
.login #backtoblog {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.login #nav a,
.login #backtoblog a {
    color: var(--stk-text-muted);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: var(--stk-olive-light);
}

/* ---------- Zprávy ---------- */
.login #login_error,
.login .message,
.login .success {
    background: rgba(185, 51, 30, 0.15);
    border-left: 4px solid var(--stk-red);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #f0b4aa;
    box-shadow: none;
}

.login .message,
.login .success {
    background: rgba(159, 166, 21, 0.15);
    border-left-color: var(--stk-olive);
    color: #d4d98a;
}

/* ---------- Custom title ---------- */
.flexipp-custom-title {
    position: fixed;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: var(--stk-text);
    font-family: 'Rubik', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    line-height: 1.3;
    z-index: 1;
}

/* ---------- Responzivita ---------- */
@media (max-width: 1024px) {
    .flexipp-custom-title {
        font-size: 32px;
        max-width: 300px;
        left: 30px;
    }
}

@media (max-width: 500px) {
    #login {
        width: 95%;
    }

    .login form {
        padding: 40px 30px;
    }

    .login form h2 {
        font-size: 26px;
    }

    .flexipp-custom-title {
        position: static;
        transform: none;
        text-align: center;
        font-size: 24px;
        max-width: 100%;
        margin: 20px auto 30px;
        padding: 0 20px;
    }
}