body {
    background-color: #f0f0f0; /* Fundo cinza claro */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

.login-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 1rem;
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.logo-cemsa {
    max-width: 180px;
    margin-bottom: 2rem;
}

.form-label-custom {
    color: #666;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.input-container {
    display: flex;
    align-items: center;
    border: 1px solid #d1d1f0;
    border-radius: 8px;
    background-color: transparent !important;
    transition: all 0.3s;
    overflow: hidden;
}

.input-container:focus-within {
    border-color: #7b7bf0;
    box-shadow: 0 0 0 0.2rem rgba(123, 123, 240, 0.2);
}

.input-container.disabled-container {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0;
    opacity: 0.7;
    cursor: not-allowed;
}

.input-container.disabled-container .input-field,
.input-container.disabled-container .input-icon {
    cursor: not-allowed;
    color: #94a3b8;
}

/* Neutraliza a cor de fundo do preenchimento automático do navegador */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-icon {
    padding: 0 12px;
    color: #666;
    display: flex;
    align-items: center;
    background: transparent
}

.input-field {
    flex: 1;
    border: none !important;
    padding: 12px 10px;
    background: transparent !important;
    outline: none;
    color: #333;
    font-size: 1rem;
}

#togglePassword {
    cursor: pointer;
    user-select: none;
    padding: 0 15px;
}

.btn-access {
    background: linear-gradient(to right, #2255ff, #0a2d8a);
    border: none;
    color: #ffffff !important;
    min-height: 52px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(34, 85, 255, 0.2);
}

.btn-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 85, 255, 0.3);
    color: #ffffff !important;
    opacity: 0.95;
}

.btn-access:active {
    transform: translateY(0);
}

#btn-text {
    color: #ffffff !important;
}

.btn-access #loader {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
    display: none; /* Controlado pelo script de login */
}

.footer-links {
    margin-top: 1.8rem;
    display: flex;
    justify-content: center;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.footer-links a:hover {
    color: #2255ff;
    background-color: #f1f5f9;
    border-color: #7b7bf0;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(123, 123, 240, 0.1);
}

.footer-links a:active {
    transform: translateY(0);
}

.legal-footer {
    position: absolute;
    bottom: 10px;
    font-size: 0.75rem;
    color: #333;
    width: 100%;
    text-align: center;
}