/* MaxEd Кинозал: страница входа. Перекрывает сниппет 9, пока он включён. */
:root { color-scheme: dark; }

html, body.login {
    min-height: 100%;
    background: #0b0c10 !important;
}

body.login {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 28px 16px;
    color: #f3f4f7;
    font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

body.login #login { width: 400px; max-width: 100%; margin: 0; padding: 0; }
body.login h1 { margin: 0 0 24px; text-align: center; }
body.login h1 a {
    width: min(220px, 70vw) !important;
    height: 74px !important;
    margin: 0 auto;
    background-image: url('/wp-content/uploads/logo.png') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    color: transparent; font-size: 0; text-indent: -9999px; overflow: hidden;
}

body.login form {
    margin: 0;
    padding: 28px !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

body.login label, body.login .forgetmenot label {
    color: #a3a8b5 !important; font-size: 14px; font-weight: 500;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"] {
    box-sizing: border-box; width: 100%; min-height: 48px;
    margin: 8px 0 18px; padding: 10px 14px;
    background: #0b0c10 !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #f3f4f7 !important; font-size: 16px;
}
body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    border-color: #ffb547 !important;
    box-shadow: 0 0 0 3px rgba(255,181,71,.18) !important;
    outline: none;
}

body.login .button.wp-hide-pw { color: #a3a8b5 !important; }
body.login .button.wp-hide-pw:hover, body.login .button.wp-hide-pw:focus { color: #f3f4f7 !important; }
body.login .forgetmenot { float: none; margin: 0 0 18px; }
body.login input[type="checkbox"] { background: #0b0c10; border-color: rgba(255,255,255,.24); border-radius: 4px; box-shadow: none; accent-color: #ffb547; }
body.login input[type="checkbox"]:checked::before { filter: brightness(0) invert(1); }
body.login .submit { margin: 0; }

body.login .button-primary, body.login #wp-submit {
    float: none; width: 100%; min-height: 48px; padding: 8px 18px;
    background: #ffb547 !important; border: 0 !important;
    border-radius: 999px !important; box-shadow: none !important;
    color: #1b1206 !important; font-size: 15px; font-weight: 600; text-shadow: none;
    transition: background-color .18s ease;
}
body.login .button-primary:hover, body.login .button-primary:focus,
body.login #wp-submit:hover, body.login #wp-submit:focus {
    background: #ffc670 !important; transform: none !important;
    box-shadow: 0 0 0 3px rgba(255,181,71,.18) !important;
}

body.login #login_error, body.login .message, body.login .success {
    margin: 0 0 18px; padding: 14px 16px;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-left: 3px solid #ffb547 !important;
    border-radius: 8px !important; box-shadow: none !important; color: #f3f4f7 !important;
}
body.login #login_error { border-left-color: #ff6b81 !important; }

body.login #nav, body.login #backtoblog, body.login .language-switcher, body.login .privacy-policy-page-link {
    display: none !important;
}

@media (max-width: 480px) {
    body.login { align-items: flex-start; padding-top: 36px; }
    body.login form { padding: 22px !important; }
}

/* Коллаж обложек */
.mx-collage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mx-collage::after { content: ""; position: absolute; inset: 0; background: rgba(11,12,16,.78); }
.mx-collage__grid {
    position: absolute; left: 50%; top: 50%; width: 150vw; transform: translate(-50%, -50%) rotate(-6deg);
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.mx-collage__grid span { aspect-ratio: 1717 / 916; border-radius: 8px; background-size: cover; background-position: center; }
body.login #login { position: relative; z-index: 1; }
body.login form { background: rgba(20,22,28,.92) !important; backdrop-filter: blur(6px); }
