:root {
    --bs-primary: #16a34a;
    --bs-primary-rgb: 22, 163, 74;
    --bs-primary-hover: #15803d;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px;
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: var(--bs-primary);
    color: white;
    font-size: 28px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

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

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover);
    border-color: var(--bs-primary-hover);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--bs-primary);
}

.alert {
    transition: opacity 0.3s ease;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.link-primary {
    color: var(--bs-primary);
    text-decoration: none;
}

.link-primary:hover {
    color: var(--bs-primary-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 55px;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 50px;
    }

    .login-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .remember-me-row {
        flex-direction: column;
        align-items: start !important;
        gap: 0.5rem;
    }
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    font-size: 1rem;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

footer img {
    filter: brightness(1.1);
}

footer .container {
    min-height: auto;
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer Responsive */
@media (max-width: 768px) {
    footer {
        padding: 8px 0;
    }

    footer .container {
        gap: 12px !important;
        font-size: 0.75rem;
        padding: 0 10px;
    }

    footer img[alt="Isologo Cormons"] {
        width: 30px !important;
        height: 30px !important;
        margin-right: 5px !important;
    }

    footer img[alt="Logo WhatsApp"] {
        width: 18px !important;
        height: 18px !important;
        margin-right: 4px !important;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 6px 0;
    }

    footer .container {
        gap: 8px !important;
        font-size: 0.7rem;
    }

    footer img[alt="Isologo Cormons"] {
        width: 24px !important;
        height: 24px !important;
    }

    footer img[alt="Logo WhatsApp"] {
        width: 16px !important;
        height: 16px !important;
    }
}