@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --al-bg: #f5f5f5;
    --al-panel: #ffffff;
    --al-ink: #1f2933;
    --al-muted: #6b7280;
    --al-border: #e6e7e2;
    --al-accent: #F9D57F;
    --al-accent-ink: #6b4e00;
    --al-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Fundo geral da página de login */
body.login {
    background-color: var(--al-bg);
    font-family: "Manrope", "Segoe UI", "Helvetica", "Arial", sans-serif;
    color: var(--al-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Fundo dinamico e elegante */
body.login::before,
body.login::after {
    content: "";
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(700px 380px at 10% 10%, rgba(249, 213, 127, 0.62), transparent 58%),
        radial-gradient(760px 420px at 90% 20%, rgba(243, 197, 83, 0.54), transparent 58%),
        radial-gradient(880px 480px at 50% 90%, rgba(249, 213, 127, 0.46), transparent 62%);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    animation: desfocado-login-glow 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body.login::after {
    background:
        radial-gradient(720px 400px at 85% 70%, rgba(249, 213, 127, 0.58), transparent 58%),
        radial-gradient(760px 420px at 20% 80%, rgba(243, 197, 83, 0.50), transparent 58%);
    animation: desfocado-login-glow-alt 5.5s ease-in-out infinite;
    opacity: 1;
}

/* halo extra para dar mais presença */
body.login .desfocado-login-bg {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(720px 420px at 50% 0%, rgba(249, 213, 127, 0.70), transparent 58%),
        radial-gradient(920px 520px at 50% 100%, rgba(243, 197, 83, 0.62), transparent 68%);
    animation: desfocado-login-glow 4.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes desfocado-login-glow {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6%, -6%, 0) scale(1.14); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes desfocado-login-glow-alt {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-6%, 6%, 0) scale(1.14); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* remove qualquer largura/offset estranho do WP */
body.login #login {
    width: 100%;
    max-width: 360px;
    margin: 0;
    padding: 0;
}

/* ====== CARTÃO BRANCO ====== */

#loginform {
    background: var(--al-panel);
    border-radius: 12px;
    border: 1px solid var(--al-border);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18), 0 2px 4px rgba(15, 23, 42, 0.12);
    padding: 24px 24px 20px;
    margin-top: 0;
    position: relative;
    color: var(--al-ink);
    z-index: 1;
}

/* header interno que injectámos via JS */
.desfocado-login-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.desfocado-login-logo-circle {
    width: 60px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.desfocado-login-brand {
    line-height: 1.2;
}
.desfocado-login-title {
    color: var(--al-ink);
    font-size:15px;
    font-weight:600;
}
.desfocado-login-sub {
    color: var(--al-muted);
    font-size:12px;
    font-weight:500;
}

/* Texto "Username or Email Address" etc */
#loginform p label {
    font-size: 12px;
    font-weight: 500;
    color: var(--al-ink);
    margin-bottom: 4px;
    display: block;
    line-height: 1.4;
}

/* Inputs */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"] {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--al-border);
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
    padding: 9px 10px;
    color: var(--al-ink);
    box-shadow: 0 0 0 2px transparent;
    transition: all .15s ease;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus {
    outline: none;
    border-color: var(--al-accent);
    box-shadow: 0 0 0 3px rgba(249, 213, 127, 0.45);
}

/* Botão "Log In" */
#loginform .submit input[type="submit"] {
    width: 100%;
    appearance: none;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--al-accent) 0%, #f3c553 100%);
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    padding: 10px 12px;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(249, 213, 127, 0.28), 0 2px 4px rgba(15, 23, 42, 0.15);
    transition: filter .15s ease, box-shadow .15s ease;
    text-shadow: none;
}

#loginform .submit input[type="submit"]:hover {
    filter: brightness(1.05);
    box-shadow: 0 20px 40px rgba(249, 213, 127, 0.42), 0 3px 6px rgba(15, 23, 42, 0.2);
}

/* lembrar-me / lost password line */
#loginform p.forgetmenot {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
#loginform p.forgetmenot label {
    font-size: 12px;
    font-weight: 500;
    color: var(--al-ink);
    display: flex;
    align-items: center;
    gap: 6px;
}
#loginform p.forgetmenot input[type="checkbox"] {
    accent-color: var(--al-accent);
    width: 14px;
    height: 14px;
}

/* link "Lost your password?" desce para baixo do botão e fica minimal */
#loginform p.submit + p {
    text-align: center;
    font-size: 12px;
    margin-top: 16px;
    color: var(--al-muted);
}
#loginform p.submit + p a {
    color: var(--al-accent);
    text-decoration: none;
    font-weight: 500;
}
#loginform p.submit + p a:hover {
    text-decoration: underline;
}

/* Mensagens de erro do WP login */
.login #login_error,
.login .message,
.login .success {
    margin: 0 0 16px 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--al-border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18), 0 2px 4px rgba(15, 23, 42, 0.12);
    font-size: 13px;
    line-height: 1.4;
    color: var(--al-ink);
    padding: 12px 14px;
}

/* "Back to site" link */
#backtoblog {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
}
#backtoblog a {
    color: var(--al-muted);
    text-decoration: none;
}
#backtoblog a:hover {
    color: var(--al-accent-ink);
    text-decoration: underline;
}

/* Ajustes mobile pequenos */
@media (max-width: 480px) {
    body.login {
        padding: 16px;
    }
    #loginform {
        padding: 20px 20px 16px;
        border-radius: 10px;
    }
    .desfocado-login-header {
        gap: 10px;
        margin-bottom: 14px;
    }
    .desfocado-login-logo-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 9px;
    }
    .desfocado-login-title {
        font-size:14px;
    }
}
