/* AUTOSAV LOGIN — GLASSMORPHISM STYLE */

/* Reset-ish */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Only style strongly when we're on the login page */
body.autosav-login-page {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(1200px 800px at 70% -20%, rgba(255,255,255,0.25), transparent 60%),
        linear-gradient(145deg, rgb(30,69,150), rgb(18,140,204) 55%, #ffffff 140%);
    background-attachment: fixed;
}

/* Make the main block wrapper fullscreen & centered on that page */
body.autosav-login-page .wp-site-blocks {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 40px);
    margin: 0;
}

/* Remove page title / extra spacing if any */
body.autosav-login-page main,
body.autosav-login-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Wrapper around the card */
.autosav-login-wrapper {
    width: 100%;
    max-width: 520px;
}

/* Card with glass effect */
.autosav-login-card {
    width: 100%;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 22px;
    padding: clamp(22px, 4vw, 32px);
    text-align: center;
    box-shadow: 0 15px 55px rgba(0,0,0,0.22);
}




/* Headline */
.autosav-login-card h2 {
    color: #0b1220;
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 18px;
}

/* Inputs */
.autosav-login-card input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.82);
    font-size: 16px;
    outline: none;
    color: #0b1220;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.autosav-login-card input:focus {
    border-color: rgba(30,69,150,0.7);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 0 1px rgba(30,69,150,0.25);
}

/* Button */
.autosav-login-card button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgb(30,69,150);
    color: #ffffff;
    border: none;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 25px rgba(15,23,42,0.35);
}

.autosav-login-card button:hover {
    opacity: 0.95;
}

.autosav-login-card button:active {
    transform: translateY(1px) scale(0.98);
}

/* Forgot password link */
.autosav-forgot {
    display: block;
    margin-top: 14px;
    color: #ffffff;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.9;
}

.autosav-forgot:hover {
    opacity: 1;
}

/* Error message */
.autosav-error {
    margin-top: 14px;
    color: #ef4444;
    font-weight: 600;
    font-size: 14px;
}

/* On the login page, hide theme header/footer and their nav stuff */
body.autosav-login-page .wp-site-blocks > header,
body.autosav-login-page .wp-site-blocks > footer,
body.autosav-login-page .wp-site-blocks > .wp-block-template-part,
body.autosav-login-page .wp-site-blocks > .wp-block-navigation {
    display: none !important;
}


.autosav-login-logo {
    display: block !important;
    width: min(200px, 60%);
    margin: 0 auto 24px auto;
}


