/*++ LOGIN */

body.login{
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #eef3f8, #e6edf5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* LOGIN GLASS */
body.login #login {
    width: 420px;
    padding: 32px 34px 36px;
    border-radius: 26px;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 30px 80px rgba(0,0,0,.15),
        inset 0 1px 0 rgba(255,255,255,.6);
    animation: fadeUp .6s ease forwards;
}

/* FORM APPEAR */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login #loginform{
    background:local; 
    padding: 0;
}

#login .wp-login-logo a {
    color: #5b2aa6;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
}

/* MESSAGE */
#login #login-message{
    position: relative;
    margin: 18px 0 26px;
    padding-left: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65); /* чуть плотнее */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06); /* чуть контрастнее */
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    color: #374151; /* темнее */
    font-weight: 500;
    overflow: hidden;
    will-change: opacity, max-height, margin, padding;
    animation: messageOut 9s cubic-bezier(.22, 1, .36, 1) forwards;
}

#login #login-message::before {
    content: "ℹ️";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: .8;
}

#login #login-message p {
    margin: 0;
    font-size: 15px;       
    color: #4b5563;        
    line-height: 1.45;
}

@keyframes messageOut {
    /* старт */
    0% {
        opacity: 0;
        max-height: 0;
        margin: 0;
        padding: 0;
    }

    /* появление */
    15% {
        opacity: 1;
        max-height: 200px;
        margin: 18px 0 26px;
        padding: 14px 18px;
        padding-left: 46px;
    }

    /* время чтения */
    70% {
        opacity: 1;
        max-height: 200px;
        margin: 18px 0 26px;
        padding: 14px 18px;
        padding-left: 46px;
    }

    /* полное исчезновение */
    100% {
        opacity: 0;
        max-height: 0;
        margin: 0;
        padding: 0;
        padding-left: 0;
    }
}

/* LABELS */
.login label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;

    color: #374151;              
    font-weight: 500;            
    letter-spacing: .2px;        
}

/* INPUTS */
#loginform .input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid #cfd8e6;
    background: rgba(255,255,255,.9);
    transition: border .25s, box-shadow .25s;
    color: #374151;
}

#loginform .input:focus {
    border-color: #ff8a00;
    box-shadow:
        0 0 0 4px rgba(255,138,0,.25),
        0 10px 28px rgba(255,138,0,.2);
}

/* PASSWORD */
#loginform .user-pass-wrap { position: relative; }
#loginform .wp-pwd { position: relative; }

#loginform .wp-hide-pw {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
}

#loginform .wp-hide-pw,
#loginform .wp-hide-pw:hover,
#loginform .wp-hide-pw:focus,
#loginform .wp-hide-pw:active {
    border: none !important;
    box-shadow: none !important;
}

/* === FIX DASHICONS EYE ICONS (CLEAN SVG) === */

#loginform .wp-hide-pw {
    background: transparent !important;
    outline: none !important;
}

/* отключаем шрифт dashicons */
#loginform .wp-hide-pw .dashicons::before {
    content: "" !important;
}

/* контейнер иконки */
#loginform .wp-hide-pw .dashicons {
    width: 20px;
    height: 20px;
    display: block;
    background-color: #6b7280; /* нейтральный серый */
}

/* пароль СКРЫТ */
#loginform .dashicons-visibility {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* пароль ОТКРЫТ */
#loginform .dashicons-hidden {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s4-6 10-6 10 6 10 6-4 6-10 6-10-6-10-6z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='3' y1='3' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s4-6 10-6 10 6 10 6-4 6-10 6-10-6-10-6z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='3' y1='3' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center / contain;
    
}

/* CHECKBOX */
#loginform .forgetmenot {
    margin: 18px 0 24px;
    display: flex;
    align-items: center;
}

#loginform .forgetmenot input {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid #ff8a00;
    background: #fff;
    margin: 0;
    border-color: #ff8a00 !important;
}

#loginform .forgetmenot input:checked {
    background: #ff8a00;
}

#loginform .forgetmenot input:checked::after {
    content: "✓";
    color: #fff;
    display: block;
    text-align: center;
    line-height: 18px;
}

#loginform .forgetmenot input:checked::before {
    content:none;    
}

#loginform .forgetmenot label {
    margin: 0 0 0 10px;
    line-height: 22px;
}

/* BUTTON */
#loginform #wp-submit {
    width: 100%;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ff8a00, #ff6a00);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border: none;

    transition:
        transform 0.55s cubic-bezier(.16, 1, .3, 1),
        box-shadow 0.55s cubic-bezier(.16, 1, .3, 1),
        filter 0.55s ease;

    will-change: transform, box-shadow;
}

/* hover — мягкий подъем и glow */
#loginform #wp-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 24px rgba(255,138,0,.28),
        0 0 0 4px rgba(255,138,0,.08);
    filter: brightness(1.02);
}

/* active — лёгкое нажатие */
#loginform #wp-submit:active {
    transform: translateY(0);
    box-shadow:
        0 5px 16px rgba(255,138,0,.22);
}

/* === LOGIN ERROR (contrast + auto hide like logout message) === */
#login_error.notice-error {
    position: relative;

    margin: 18px 0 26px;
    padding: 14px 18px 14px 46px;
    border-radius: 16px;

    background: rgba(239, 68, 68, 0.16); /* заметнее */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow:
        0 10px 28px rgba(239, 68, 68, 0.18),
        inset 0 1px 0 rgba(255,255,255,.55);

    color: #1f2937;
    font-size: 14.5px;
    line-height: 1.5;

    overflow: hidden;
    will-change: opacity, max-height, margin, padding;

    animation: loginErrorOut 10s cubic-bezier(.22,1,.36,1) forwards;
}

/* SVG иконка */
#login_error.notice-error::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;

    background-color: #dc2626;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* текст */
#login_error.notice-error strong {
    font-weight: 600;
    color: #111827;
}

@keyframes loginErrorOut {
    /* старт — скрыт */
    0% {
        opacity: 0;
        max-height: 0;
        margin: 0;
        padding: 0;
    }

    /* плавное появление */
    15% {
        opacity: 1;
        max-height: 200px;
        margin: 18px 0 26px;
        padding: 14px 18px 14px 46px;
    }

    /* время чтения */
    70% {
        opacity: 1;
        max-height: 200px;
        margin: 18px 0 26px;
        padding: 14px 18px 14px 46px;
    }

    /* очень мягкое исчезновение + схлопывание */
    100% {
        opacity: 0;
        max-height: 0;
        margin: 0;
        padding: 0;
    }
}
/*-- LOGIN */