/* =========================
   BDG Glass Login Card
   Toggled via plugin settings.
   Applies to all login forms: login, reset password, set password, magic link, lost password.
   ========================= */

/* Glass card */
body.login #login {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 20px 24px 16px;
}

@supports not (backdrop-filter: blur(1px)) {
    body.login #login {
        background: rgba(0, 0, 0, 0.45);
    }
}

/* Transparent inner sections — all form types */
body.login .wp-login-logo,
body.login #loginform,
body.login #resetpassform,
body.login #lostpasswordform,
body.login #bdg_magic_link_form {
    background: transparent;
}

/* Reset WP defaults — all form types */
body.login #loginform,
body.login #loginform p,
body.login #loginform fieldset,
body.login #resetpassform,
body.login #resetpassform p,
body.login #lostpasswordform,
body.login #lostpasswordform p,
body.login #bdg_magic_link_form,
body.login #bdg_magic_link_form p {
    border: none;
    box-shadow: none;
    background: transparent;
}
body.login #loginform::before,
body.login #loginform::after,
body.login #resetpassform::before,
body.login #resetpassform::after,
body.login #lostpasswordform::before,
body.login #lostpasswordform::after,
body.login #bdg_magic_link_form::before,
body.login #bdg_magic_link_form::after {
    display: none;
}

/* Compact spacing — all form types */
body.login #loginform,
body.login #resetpassform,
body.login #lostpasswordform,
body.login #bdg_magic_link_form {
    padding: 0 !important;
    margin: 0 !important;
}
body.login #loginform p,
body.login #loginform .user-pass-wrap,
body.login #resetpassform p,
body.login #lostpasswordform p,
body.login #bdg_magic_link_form p {
    margin-bottom: 10px !important;
}
body.login .wp-login-logo {
    margin-bottom: 10px;
    padding: 0;
}
body.login .wp-login-logo a {
    height: 60px;
    background-size: contain;
}
body.login #loginform .forgetmenot {
    margin-bottom: 8px !important;
}
body.login #loginform .submit,
body.login #resetpassform .submit,
body.login #lostpasswordform .submit,
body.login #bdg_magic_link_form .submit {
    margin-top: 0 !important;
    padding: 0 !important;
}

/* Message box (e.g. "Enter your new password below") */
body.login .message,
body.login #login_error {
    background: rgba(255, 255, 255, 0.25) !important;
    border-left-color: rgba(20, 20, 20, 0.3) !important;
    color: rgba(20, 20, 20, 0.95) !important;
    box-shadow: none !important;
}

/* Labels */
body.login label {
    color: rgba(20, 20, 20, 0.95);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
}

/* Inputs — compact, all form types */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(20, 20, 20, 0.95);
    font-weight: 600;
    box-shadow: none;
    padding: 6px 10px !important;
    font-size: 14px !important;
    margin-top: 4px !important;
}
body.login input::placeholder {
    color: rgba(20, 20, 20, 0.6);
}
body.login input:focus {
    outline: none;
    border-color: rgba(20, 20, 20, 0.5);
}

/* Submit button */
body.login #wp-submit {
    background: #e24c6f;
    border: none;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(226, 76, 111, 0.4);
    padding: 8px 16px !important;
    font-size: 14px !important;
    transition: transform 0.15s ease;
}
body.login #wp-submit:hover {
    transform: translateY(-1px);
}

/* Checkbox */
body.login input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}
body.login .forgetmenot label {
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    color: rgba(20, 20, 20, 0.95);
    font-weight: 600;
    font-size: 13px;
}
body.login .forgetmenot label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(20, 20, 20, 0.6);
    border-radius: 4px;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
body.login input[type="checkbox"]:checked + label::before {
    background: rgba(20, 20, 20, 0.95);
    border-color: rgba(20, 20, 20, 0.95);
    animation: bdg-checkbox-bounce 0.25s ease;
}
body.login .forgetmenot label::after {
    content: "\2713";
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-58%) scale(0.4);
    opacity: 0;
    color: #ffffff;
    font-size: 13px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
body.login input[type="checkbox"]:checked + label::after {
    opacity: 1;
    transform: translateY(-58%) scale(1);
}
@keyframes bdg-checkbox-bounce {
    0%   { transform: translateY(-50%) scale(1); }
    60%  { transform: translateY(-50%) scale(1.15); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Nav links (forgot password, back to login) */
body.login #nav {
    display: flex;
    justify-content: center;
    margin: 10px 0 6px;
    padding: 0;
}
body.login #nav a {
    color: rgba(20, 20, 20, 0.95);
    font-weight: 600;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
}
body.login #nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Back to site link — compact */
body.login #backtoblog {
    margin: 8px 0 0;
    padding: 0;
    text-align: center;
}
body.login #backtoblog a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}
