:root {
    --cor-principal: #00b825;
    --cor-secundaria: #035e1a;
    --cor-terciaria: #ffffff;
    --cor-texto: #333333;
    --cor-clara: #fff;
    --primary-color: var(--cor-principal);
    --secondary-color: var(--cor-secundaria);
    --text-color: var(--cor-texto);
    --success-color: #198754;
    --error-color: #dc3545;
}

/* Estilos do Login */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--cor-principal), var(--cor-secundaria));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    transform: translateY(-30px);
}

.login-card {
    background: var(--cor-terciaria);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.empresa-nome {
    color: var(--cor-texto);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.form-floating {
    margin-bottom: 20px;
    position: relative;
}

.form-floating .form-control {
    border: 2px solid #eee;
    padding-left: 45px;
}

.form-floating .form-control:focus {
    border-color: var(--cor-principal);
    box-shadow: 0 0 0 0.25rem rgba(var(--cor-principal-rgb), 0.25);
}

.form-floating label {
    padding-left: 45px;
    color: var(--cor-texto);
}

.form-floating .bi {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    color: var(--cor-texto);
}

/* Estilo do botão mostrar/esconder senha */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: none;
    border: none;
    padding: 0;
    color: var(--cor-texto);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.password-toggle:hover {
    opacity: 1;
    color: var(--cor-principal);
}

.password-toggle:focus {
    outline: none;
    box-shadow: none;
}

.input-group .input-group-text {
    background: transparent;
    border: 2px solid #eee;
    border-left: none;
    cursor: pointer;
    color: var(--cor-texto);
}

.input-group .form-control {
    border-right: none;
}

.input-group .form-control.password {
    border-right: none;
    background: transparent;
    color: var(--cor-texto);
    placeholder: 'Senha';
}

.btn-primary {
    background: var(--cor-principal);
    border-color: var(--cor-principal);
    width: 100%;
    padding: 12px;
    font-weight: 500;
    position: relative;
    color: var(--cor-terciaria);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
    color: var(--cor-terciaria);
}

.alert {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: none;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert .bi {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-loading {
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid var(--cor-terciaria);
    border-top-color: transparent;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Footer Styles */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: var(--cor-terciaria);
    text-align: center;
    font-size: 0.9rem;
}

.login-footer .footer-link {
    color: var(--cor-terciaria);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.login-footer .footer-link:hover {
    opacity: 0.8;
    color: var(--cor-terciaria);
}

/* Validação visual */
.form-control.is-invalid {
    border-color: var(--error-color) !important;
    box-shadow: none !important;
}

.form-control.is-valid {
    border-color: var(--success-color) !important;
    box-shadow: none !important;
}

@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem !important;
    }
    
    .login-logo img {
        max-width: 150px !important;
    }
    
    .empresa-nome {
        font-size: 1.2rem !important;
    }

    .btn-primary {
        padding: 0.75rem !important;
    }
}
