/* =============================================
   Não Apague o Rei — Login Page CSS
   Dark Luxury · Black & Gold
   ============================================= */

/* ---------- Fundo e corpo ---------- */
html,
body.login,
body.naor-login-body {
    background: #050505 !important;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212,175,55,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 90%, rgba(156,122,30,0.04) 0%, transparent 60%);
    color: #F5F1E8;
    font-family: 'Montserrat', 'Inter', sans-serif;
    min-height: 100vh;
}

/* ---------- Container central ---------- */
body.login div#login {
    width: 100%;
    max-width: 420px;
    padding: 0 16px;
    margin: 0 auto;
    padding-top: clamp(40px, 8vh, 80px);
    padding-bottom: 40px;
}

/* ---------- Logo ---------- */
body.login h1 a {
    display: block;
    width: 100%;
    height: auto;
    background-image: none !important;
    text-indent: 0;
    overflow: visible;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #D4AF37;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: 0.05em;
    padding: 0 0 8px;
    white-space: normal;
}

body.login h1 a::before {
    content: '♛';
    display: block;
    font-size: 2.4rem;
    margin-bottom: 8px;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(212,175,55,0.4));
}

/* ---------- Cartão do formulário ---------- */
body.login #loginform,
body.login #lostpasswordform,
body.login #registerform {
    background: #0B0B0D;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 36px 32px 28px;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.6),
        0 0 0 1px rgba(212,175,55,0.06) inset;
    margin-top: 0;
}

/* ---------- Labels ---------- */
body.login label {
    color: #B8B8B8 !important;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* ---------- Inputs ---------- */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    background: #111116 !important;
    border: 1px solid rgba(212,175,55,0.2) !important;
    border-radius: 7px !important;
    color: #F5F1E8 !important;
    font-family: 'Montserrat', 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 12px 14px !important;
    width: 100% !important;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: rgba(212,175,55,0.6) !important;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1) !important;
}

body.login input:-webkit-autofill,
body.login input:-webkit-autofill:hover,
body.login input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #111116 inset !important;
    -webkit-text-fill-color: #F5F1E8 !important;
    caret-color: #F5F1E8;
}

/* ---------- Botão ---------- */
body.login input#wp-submit,
body.login .button.button-primary.button-large {
    background: linear-gradient(135deg, #9C7A1E 0%, #D4AF37 60%, #E8CB6A 100%) !important;
    border: none !important;
    border-radius: 7px !important;
    color: #050505 !important;
    font-family: 'Cinzel', Georgia, serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 13px 20px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: opacity 0.25s, transform 0.2s !important;
    box-shadow: 0 4px 20px rgba(212,175,55,0.25) !important;
    text-shadow: none !important;
    height: auto !important;
}

body.login input#wp-submit:hover,
body.login .button.button-primary.button-large:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

body.login input#wp-submit:active {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* ---------- "Lembrar-me" ---------- */
body.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.login .forgetmenot label {
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    color: #6B6B6B !important;
    cursor: pointer;
}

body.login input[type="checkbox"] {
    accent-color: #D4AF37;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ---------- Submit wrapper ---------- */
body.login .submit {
    margin-top: 20px;
    padding: 0;
}

/* ---------- Mensagens e erros ---------- */
body.login .message,
body.login p.message {
    background: rgba(212,175,55,0.08) !important;
    border-left: 3px solid #D4AF37 !important;
    border-radius: 0 6px 6px 0 !important;
    color: #D4AF37 !important;
    font-size: 0.85rem;
    padding: 10px 14px !important;
    margin-bottom: 16px !important;
}

body.login .login-error-area,
body.login #login_error {
    background: rgba(230, 57, 70, 0.1) !important;
    border-left: 3px solid #e63946 !important;
    border-radius: 0 6px 6px 0 !important;
    color: #ff8080 !important;
    font-size: 0.85rem;
    padding: 10px 14px !important;
    margin-bottom: 16px !important;
}

body.login #login_error a {
    color: #ff8080 !important;
}

/* Mensagem de boas-vindas customizada */
p.naor-login-welcome {
    text-align: center;
    color: #B8B8B8;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* ---------- Links inferiores ---------- */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    margin-top: 12px;
}

body.login #nav a,
body.login #backtoblog a {
    color: rgba(212,175,55,0.6) !important;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #D4AF37 !important;
}

body.login #backtoblog {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---------- Formulário de senha perdida ---------- */
body.login #lostpasswordform p {
    color: #B8B8B8;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ---------- Privacy policy ---------- */
body.login .privacy-policy-page-link {
    display: none;
}

/* ---------- Separação entre campos ---------- */
body.login .login-username,
body.login .login-password {
    margin-bottom: 16px;
}

/* ---------- Form row internos (forget password + submit) ---------- */
body.login .wp-login-lost-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 16px;
}

body.login .wp-login-lost-password a {
    color: rgba(212,175,55,0.5) !important;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

body.login .wp-login-lost-password a:hover {
    color: #D4AF37 !important;
}

/* ---------- Responsivo ---------- */
@media (max-width: 480px) {
    body.login div#login {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 32px;
    }

    body.login #loginform,
    body.login #lostpasswordform {
        padding: 28px 20px 24px;
    }
}
