/* ========================================
   Login Page Styles
   ======================================== */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 120px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.login-header h1 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.login-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-alert-error {
    background: rgba(237, 28, 36, 0.15);
    border: 1px solid rgba(237, 28, 36, 0.3);
    color: #ff6b6b;
}

.login-alert-success {
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: #66bb6a;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.login-field label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-field label i {
    margin-right: 6px;
    opacity: 0.7;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-input:focus {
    border-color: #ed1c24;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15);
}

.login-password-wrapper {
    position: relative;
}

.login-password-wrapper .login-input {
    padding-right: 50px;
}

.login-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 4px;
}

.login-toggle-password:hover {
    color: rgba(255, 255, 255, 0.8);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ed1c24, #c41920);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #c41920, #a01118);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.35);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

/* Change Password Modal overlay */
.cpw-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cpw-card {
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 35px 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.cpw-card h3 {
    color: var(--primary-red, #ed1c24);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.cpw-card p {
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.cpw-card .login-field {
    margin-bottom: 16px;
}

.cpw-card .login-field label {
    color: var(--text-color, #f1f5f9);
}

.cpw-card .login-input {
    background: var(--bg-color, #0f172a);
    border-color: var(--border-color, #334155);
    color: var(--text-color, #f1f5f9);
}

.cpw-card .login-input:focus {
    border-color: var(--primary-red);
}

.cpw-card .login-btn {
    margin-top: 5px;
}

.cpw-error {
    color: #ff6b6b;
    font-size: 0.82rem;
    margin-top: 10px;
    display: none;
}

/* Novas classes para o Login Customizado */
.body_login {
    min-height: 100vh;
    margin: 0;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-bg {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.login-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--primary-red, #ed1c24);
}

.div-img {
    margin-bottom: 25px;
}

.div-img img {
    max-width: 70%;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.div-inputs-chefe {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.div-input {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 15px;
    transition: all 0.3s;
}

.div-input:focus-within {
    border-color: var(--primary-red, #ed1c24);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.2);
}

.div-input i.bi {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    margin-right: 10px;
}

.div-input .input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 0;
    font-size: 1rem;
    color: #fff;
    outline: none;
}

.div-input .input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btnEsp {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.btnEsp:hover {
    color: var(--primary-red, #ed1c24);
}

.div-btn {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.div-btn .btn {
    background: var(--primary-red, #ed1c24);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.div-btn .btn:hover {
    background: #c8102e;
    transform: translateY(-2px);
}

.div-btn #trocarForm {
    background: transparent;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.div-btn #trocarForm:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.div-msg-erro {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}