/* Исключаем/скрываем лишние элементы */
.login h1 {
    display: none;
}
.login .privacy-policy-page-link,
.language-switcher,
.login #backtoblog,
.login #nav {
    display: none !important;
}
.grecaptcha-badge {
    display: none;
}

/* Общий фон страницы входа с эффектами свечения */
body.login {
    background: #060913 !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Фоновые светящиеся градиентные сферы */
body.login::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(20, 110, 245, 0.18) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: floatBlob1 25s infinite alternate ease-in-out;
}

body.login::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: floatBlob2 30s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 10%) scale(1.15); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, -15%) scale(1.1); }
}

/* Контейнер формы */
#login {
    position: relative;
    z-index: 10;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 390px;
}

/* Стилизация формы (абсолютно квадратная, прозрачная) */
.login form {
    background: #ffffff03 !important; /* Указанный пользователем фон */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0px !important; /* Квадратная форма */
    padding: 40px 30px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

/* Метки полей (текст белый) */
.login label {
    color: white !important; /* Указанный пользователем цвет */
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

/* Поля ввода (квадратные, полупрозрачные темные) */
.login form .input,
.login input[type="text"],
.login input[type="password"] {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 0px !important; /* Квадратная форма */
    padding: 12px 14px !important;
    font-size: 15px !important;
    height: auto !important;
    width: 100% !important;
    box-shadow: none !important;
    transition: all 0.25s ease-in-out;
    box-sizing: border-box;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: #146ef5 !important;
    box-shadow: 0 0 0 1px #146ef5 !important; /* Четкая рамка фокуса без размытия */
    outline: none !important;
}

/* Блок Запомнить меня */
.login form .forgetmenot {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 25px !important;
    margin-top: 15px !important;
}

.login form .forgetmenot label {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 13px !important;
    color: white !important; /* Указанный пользователем цвет */
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 500 !important;
    padding-left: 10px !important; /* Указанный пользователем отступ */
}

/* Чекбокс (абсолютно квадратный) */
.login form input[type="checkbox"] {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0px !important; /* Квадратный чекбокс */
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    position: relative;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.login form input[type="checkbox"]:checked {
    background: #146ef5 !important;
    border-color: #146ef5 !important;
}

.login form input[type="checkbox"]:checked::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

/* Кнопка отправки (абсолютно квадратная) */
.login form p.submit {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wp-core-ui .button-primary {
    background: #146ef5 !important;
    border: none !important;
    border-radius: 0px !important; /* Квадратная кнопка */
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 13px 20px !important;
    height: auto !important;
    line-height: normal !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: none !important;
    width: 100% !important;
    float: none !important;
    cursor: pointer;
    transition: all 0.25s ease-in-out !important;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    background: #3b82f6 !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4) !important;
}

.wp-core-ui .button-primary:active {
    background: #0f52ba !important;
}

/* Уведомления об ошибках и сообщения (квадратные, темные) */
.login #login_error,
.login .message,
.login .info {
    background: rgba(10, 15, 30, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 4px solid #146ef5 !important;
    border-radius: 0px !important; /* Квадратные */
    color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
    padding: 12px 16px !important;
}

.login #login_error {
    border-left-color: #ef4444 !important;
}

/* Фикс для глазка показать/скрыть пароль */
.wp-admin .wp-hide-pw, 
.login .wp-hide-pw {
    color: rgba(255, 255, 255, 0.4) !important;
}
.wp-admin .wp-hide-pw:hover, 
.login .wp-hide-pw:hover {
    color: #ffffff !important;
}
