/* ==============================================
   PAGE ACCESS RESTRICTOR – Frontend Login Form
   ============================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.par-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 20px;
}

.par-login-container {
    width: 100%;
    max-width: 420px;
}

.par-login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: parSlideUp .4s ease;
}

@keyframes parSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.par-login-header {
    text-align: center;
    margin-bottom: 28px;
}

.par-lock-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.15));
}

.par-login-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.par-login-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Mensagem de erro */
.par-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* Campos */
.par-field {
    margin-bottom: 18px;
}

.par-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.par-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a2e;
    background: #f9fafb;
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
}

.par-field input:focus {
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, .15);
}

.par-field input::placeholder {
    color: #9ca3af;
}

/* Botão de login */
.par-login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    margin-top: 6px;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(34, 113, 177, .4);
}

.par-login-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(34, 113, 177, .45);
}

.par-login-btn:active {
    transform: translateY(0);
    opacity: 1;
}

/* Rodapé */
.par-login-footer {
    text-align: center;
    margin-top: 22px;
}

.par-login-footer a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}

.par-login-footer a:hover {
    color: #2271b1;
}

/* Botão de logout (shortcode) */
.par-logout-btn {
    display: inline-block;
    padding: 9px 18px;
    background: #dc2626;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, transform .1s;
}

.par-logout-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Responsivo */
@media (max-width: 480px) {
    .par-login-card {
        padding: 28px 20px;
    }
}
