/* =============================================================
   WCS Login Page – stílusok
   ============================================================= */
@font-face {
    font-family: 'Atyp Display';
    src: url('/wp-content/uploads/2026/02/AtypDisplay-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Circular XX';
    src: url('/wp-content/uploads/2026/02/CircularXXTT-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Circular XX';
    src: url('/wp-content/uploads/2026/02/CircularXXTT-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --c-bg: #29244E;
    --c-card: #fffff7;
    --c-label: #29244E;
    --c-gray: #3D454F;
    --c-input-bg: #fffff7;
    --c-input-border: #E2E3E4;
    --c-accent: #DB6361;
    --c-headline: #fffff7;
    --f-ui: 'Circular XX', -apple-system, BlinkMacSystemFont, sans-serif;
    --f-display: 'Atyp Display', -apple-system, sans-serif;
}

/* ===== HÁTTÉR ===== */
html,
body.login,
body.wcs-login-body {
    background-color: var(--c-bg) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    font-family: var(--f-ui) !important;
}

/* ===== LOGIN WRAPPER ===== */
#login {
    position: relative;
    z-index: 20;
    max-width: 90vw;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* ===== LOGO / HEADER ===== */
#login h1 {
    margin-bottom: 0;
}

#login h1 a {
    display: block;
    text-align: center;
    font-size: 0;
    background: none !important;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 0 4px;
}

#login h1 a::before {
    content: '';
    display: flex;
    background: url("/wp-content/uploads/wcs-login/logo_white.svg") no-repeat center;
    background-size: contain;
    height: 16px;
}

#login h1 a::after {
    content: 'Üdvözlünk';
    font-family: var(--f-display);
    font-size: 40px;
    color: var(--c-headline);
}

/* ===== KÁRTYA ===== */
#loginform * {
    float: unset;
}

#loginform,
#lostpasswordform,
.login form {
    background: var(--c-card) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 30px !important;
    width: 100% !important;
    margin-top: 24px !important;
}

/* ===== DS FIELD – WRAPPER ===== */
#loginform > p:has(input.input),
#loginform .user-pass-wrap {
    display: grid;
    gap: 6px;
    margin-bottom: 24px;
}

/* Label – DS webstar-field__label stílus */
#loginform > p > label:not([for="rememberme"]),
#loginform .user-pass-wrap > label {
    position: static !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    color: var(--c-label) !important;
    pointer-events: none;
    transition: none;
    order: -1;
}

/* Input – DS webstar-field__control stílus */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"] {
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid var(--c-input-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 4px !important;
    min-height: 48px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--c-label) !important;
    width: 100% !important;
    transition: border-color 0.15s;
    margin: 0;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border-bottom-color: var(--c-accent) !important;
}

/* Jelszó mező – a show/hide gomb ne tolja el a labelt */
#loginform .wp-pwd {
    position: static;
}

#loginform .wp-hide-pw {
    position: absolute;
    right: 0;
    top: 4px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--c-label);
    padding: 4px;
    cursor: pointer;
    z-index: 2;
}

#loginform .wp-hide-pw:hover {
    color: var(--c-accent);
}

/* Caps lock figyelmeztetés */
#loginform .caps-warning {
    font-size: 11px;
    color: var(--c-accent);
    margin-top: 4px;
}

#loginform .forgetmenot {
    position: relative;
}

/* ===== GOMB ===== */

p.submit {
    text-align: center;
}

#wp-submit,
.login form .submit input[type="submit"] {
    background: var(--c-accent) !important;
    border: 3px solid var(--c-accent) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: var(--f-ui) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    margin-top: 20px !important;
    line-height: 1;
    transition: background 0.18s, border-color 0.18s !important;
}

#wp-submit:hover,
.login form .submit input[type="submit"]:hover {
    background: var(--c-label) !important;
    border-color: var(--c-label) !important;
    color: #fff !important;
}

/* ===== LOGIN LOADER OVERLAY ===== */

.wcs-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 255, 247, 0.92); /* eggshell — DS overlay minta */
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.wcs-login-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.wcs-login-overlay__spinner {
    color: var(--c-accent);
    animation: wcs-spin .75s linear infinite;
}

.wcs-login-overlay__text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .05em;
    color: var(--c-gray);
}

@keyframes wcs-spin {
    to { transform: rotate(360deg); }
}

/* ===== EXTRA LINKEK (lost password, back to blog) ===== */
#nav,
#backtoblog {
    text-align: center;
    padding: 8px 0;
}

#nav a,
#backtoblog a {
    color: rgba(255, 255, 255, 0.65) !important;
    font-family: var(--f-ui) !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

#nav a:hover,
#backtoblog a:hover {
    color: #fff !important;
}

/* ===== HIBAÜZENET ===== */
#login_error,
.login .notice {
    border: none !important;
    border-radius: 10px !important;
    background: var(--c-card) !important;
    font-size: 13px !important;
    box-shadow: none;
    margin: 0;

    strong {
        font-weight: 500;
    }

    a {
        color: var(--c-accent);
    }
}

/* ===== NYELVVÁLASZTÓ ELREJTÉSE ===== */
.login #language-switcher,
.login #language-switcher-section,
#login .language-switcher {
    display: none !important;
}

/* ===== LEBEGŐ IKON KÁRTYÁK ===== */
.wcs-icon-card {
    position: fixed;
    z-index: 15;
    width: 78px;
    height: 78px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(16, 10, 44, 0.20),
    0 2px 8px rgba(16, 10, 44, 0.10);
    pointer-events: none;
    /* rotation és delay JS-ből is jön, de CSS fallback: */
    transform: rotate(var(--rot, 0deg)) translateY(0);
    animation: wcsFloat var(--dur, 4.2s) ease-in-out infinite var(--delay, 0s);
}

.wcs-icon-card svg {
    width: 78px !important;
    height: 78px !important;
    display: block;
}

@keyframes wcsFloat {
    0%, 100% {
        transform: rotate(var(--rot, 0deg)) translateY(0);
    }
    50% {
        transform: rotate(var(--rot, 0deg)) translateY(-11px);
    }
}

/* --- Bal oldal --- */
.wcs-ic-notification {
    top: 10%;
    left: 7%;
    --rot: -8deg;
    --delay: 0s;
    --dur: 2s;
}

.wcs-ic-search {
    top: 23%;
    left: 17%;
    --rot: -5deg;
    --delay: 0s;
    --dur: 3.8s;
}

.wcs-ic-dashboard {
    top: 46%;
    left: 4%;
    --rot: -10deg;
    --delay: 0s;
    --dur: 5s;
}

.wcs-ic-vacation {
    top: 50%;
    left: 22%;
    --rot: 7deg;
    --delay: 0s;
    --dur: 3.9s;
}

.wcs-ic-statistics {
    top: 77%;
    left: 3%;
    --rot: -6deg;
    --delay: 0s;
    --dur: 2.5s;
}

.wcs-ic-news {
    top: 80%;
    left: 20%;
    --rot: 4deg;
    --delay: 0s;
    --dur: 4.0s;
}

/* --- Jobb oldal --- */
.wcs-ic-gift {
    top: 8%;
    right: 18%;
    --rot: 8deg;
    --delay: 0s;
    --dur: 2.3s;
}

.wcs-ic-calendar {
    top: 9%;
    right: 5%;
    --rot: -4deg;
    --delay: 0s;
    --dur: 3.7s;
}

.wcs-ic-education {
    top: 35%;
    right: 22%;
    --rot: -7deg;
    --delay: 0s;
    --dur: 5.1s;
}

.wcs-ic-injury {
    top: 36%;
    right: 7%;
    --rot: 6deg;
    --delay: 0s;
    --dur: 2.4s;
}

.wcs-ic-microphone {
    top: 63%;
    right: 20%;
    --rot: -5deg;
    --delay: 0s;
    --dur: 4.0s;
}

.wcs-ic-media {
    top: 77%;
    right: 9%;
    --rot: 9deg;
    --delay: 0s;
    --dur: 2.9s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .wcs-icon-card {
        display: none;
    }

    #login {
        padding-top: 40px;
    }
}
