/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: url("./images/login/bg.png") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 415px;
    padding: 20px;
}

.login-card {
    background: #82838745;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
    width: 90%;
    position: relative;
    right: 74%;
    margin-top: -36%;
}

/* Header */
.login-header {
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.brand-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.9;
}

.login-logo {
    max-width: 330px;
    margin-bottom: 1%;
    position: absolute;
    left: 40%;
    margin-top: -15%;
}

/* Formulario */
.login-form {
    padding: 20px 32px;
}

.form-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 43px;
}

.form-group {
    margin-bottom: 8px;
}

.form-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 5px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: #848485;
    box-shadow: 0 0 0 0.2rem rgba(106, 112, 122, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.form-check {
    margin-bottom: 0;
}

.form-check-input:checked {
    background-color: #9e9e9e;
    border-color: #646465;
}

.form-check-label {
    font-size: 14px;
    color: #6c757d;
}

.forgot-link {
    font-size: 14px;
    color: #c7c7c7;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    color: #7a7b7e;
    text-decoration: underline;
}

/* Botones */
.btn-login {
    background: linear-gradient(135deg, #595859 9% 0%, #d6d6d6 71% 50% , #a6a6a6 99%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    margin-bottom: 0px;
    transition: all 0.3s ease;
    color: white;
}

.btn-login:hover, .btn-login:focus ,.btn-login:active {
    background: #b9b8b8;
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    border: 2px solid #1e3c72;
    border-radius: 8px;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    color: #1e3c72;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.login-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #dee2e6;
    position: absolute;
    bottom: 1%;
    left: 1%;
}

img.marcali-banner {
    position: absolute;
    margin-top: 1.5%;
    left: 26%;
    width: 10%;
}

.footer-text {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.footer-contact {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 0;
}

.brand-footer {
    text-align: center;
    margin-top: 20px;
}

.brand-footer img {
    max-width: 150px;
}

/* Responsive */

@media (max-width: 1400px) {
    .login-logo{
        max-width: 290px;
        margin-bottom: 1%;
        position: absolute;
        left: 40%;
        margin-top: -13%;
    }

    .login-card {
        background: #82838745;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        border: 3px solid #fff;
        width: 90%;
        position: relative;
        right: 82%;
        margin-top: -23%;
    }

    .login-form {
        padding: 15px 25px;
    }

    img.marcali-banner {
        position: absolute;
        margin-top: 1.5%;
        left: 20%;
        width: 11%;
    }
}

@media(max-width: 1300px) {
    .login-logo{
        max-width: 245px;
        margin-bottom: 1%;
        position: absolute;
        left: 41%;
        margin-top: -11%;
    }
    .login-card{
        width: 78%;
        position: relative;
        right: 49%;
        margin-top: -19%;
    }
    .login-form {
        padding: 9px 18px;
    }
    .whatsapp-logo{
        width: 38px;
        height: 36px !important;
    }
    .login-footer {
        padding: 10px;
        text-align: center;
        border-top: 1px solid #dee2e6;
        position: absolute;
        bottom: 0%;
        left: 0%;
    }
    img.marcali-banner {
        position: absolute;
        margin-top: 1.5%;
        left: 26%;
        width: 11%;
    }
    .footer-contact{
        font-size: 15px;
        color: #6c757d;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    body {
        background: url(./images/login/bg_mobil.png) no-repeat center center fixed;
        background-size: cover;
        background-attachment: fixed;
        background-position: center; 
        height: 100vh; 
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .login-container {
        padding: 15px;
        max-width: 100%;
    }

    .login-form {
        padding: 44px 20px 20px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .login-logo {
        max-width: 318px;
        margin-bottom: 1%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%); 
        margin-top: -47%;
    }

    .login-card {
        width: 90%; 
        margin: 0 auto; 
        margin-top: -6%;
        right: auto;
        height: 400px;
    }

    img.marcali-banner {
        position: absolute;
        margin-top: 17%;
        left: 25%;
        width: 50%;
    }
}

@media (max-width: 380px) {
    .login-logo {
        max-width: 245px;
        margin-bottom: 1%;
        position: absolute;
        left: 50%;
        margin-top: -30%;
    }

    .login-card {
        width: 90%; 
        margin: 0 auto; 
        margin-top: -6%;
        right: auto;
        height: 335px;
    }

    .login-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .login-form {
        padding: 20px;
    }

    .form-group{
        margin-bottom: 10px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .login-header {
        padding: 20px 15px;
    }
    
    .brand-title {
        font-size: 24px;
    }
    
    .form-title {
        font-size: 20px;
    }

    img.marcali-banner {
        position: absolute;
        margin-top: 6%;
        left: 26%;
        width: 46%;
    }
}



@media (max-width: 360px) {
    .login-form {
        padding: 15px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .btn-login, .btn-outline {
        font-size: 14px;
        padding: 10px;
    }
}

/* Estilos para el logo de WhatsApp */
.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.whatsapp-logo {
    width: 38px;
    height: 56px;
    background-color: #6c757d;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center;
    display: inline-block;
}

.separator {
    color: #6c757d;
}

/* Ajustes responsive para el footer */
@media (max-width: 480px) {
    .footer-contact {
        font-size: 11px;
        gap: 5px;
    }
    
    .whatsapp-logo {
        width: 16px;
        height: 16px;
    }
}