/* Variables CSS */
:root {
    --primary-color: #a67b50;
    --hover-color: #bea070;
    --text-color: #153B67;
    --border-color: #ebe9e9;
    --background-color: #f1f1f1;
    --error-color: #721c24;
    --error-bg: #f8d7da;
    --error-border: #f5c6cb;
}

/* Estilos base */
body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
}

.logo {
    margin-bottom: 30px;
    width: 50%;
}

.logo span {
    font-size: 18px;
    font-weight: bold;
}

.panel-heading {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 35px;
    color: #aaa;
    cursor: pointer;
}

.btn-login {
    background-color: var(--primary-color) !important;
    color: white !important;
    font-weight: bold !important;
}

.btn-login:hover {
    background-color: var(--hover-color) !important;
    color: white !important;
    font-weight: bold !important;
}

.footer-buttons {
    margin-top: 30px;
}

.footer-buttons .btn {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: white !important;
    font-weight: bold !important;
    width: 100% !important;
}

.footer {
    margin-top: 40px;
    font-size: 11px;
    color: #888;
}

.toggle-password {
    float: right;
    cursor: pointer;
}

.texto1 {
    color: var(--text-color);
}

.hr-with-text {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #ccc;
    line-height: 0.1em;
    margin: 20px 0;
}

.hr-with-text span {
    background: #f9f9f9;
    padding: 0 10px;
    font-size: 14px;
    color: #666;
}

.tabs-switch {
    display: inline-block;
    border: 6px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: var(--background-color);
}

.tab-button {
    padding: 8px 20px;
    border: none;
    background: none;
    float: left;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
}

.form-login {
    text-align: center;
    margin: auto;
    max-width: 450px;
}

.right-panel {
    background-color: #f8f9fa;
    background-image: url('https://convenios.uaem.mx/assets/images/Bg_portal_convenios_UAEM.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh !important;
}

.left-panel {
    padding: 0;
}

.left-content {
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alert-danger {
    color: var(--error-color);
    background-color: var(--error-bg);
    border-color: var(--error-border);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.form-control {
    text-align: center;
}

/* Media Queries optimizadas */
@media (max-width: 575.98px) {
    .logo {
        width: 80%;
        margin-bottom: 20px;
    }

    .panel-heading {
        font-size: 18px;
    }

    .right-panel {
        display: none;
    }

    .tabs-switch {
        display: flex;
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        margin-bottom: 5px;
        border-radius: 4px;
    }

    .footer-buttons {
        flex-direction: column;
    }

    .footer-buttons .col-6 {
        width: 100%;
        margin-bottom: 10px;
    }

    .textoBienvenida {
        font-size: 20px;
    }

    .textoBienvenida2 {
        font-size: 14px;
    }

    .form-login {
        max-width: 650px !important;
        padding: 0 15px;
    }
}

@media (max-width: 399.98px) {

    .footer-buttons .btn {
        font-size: 11px;
        padding: 5px 8px;
    }

    .textoBienvenida {
        font-size: 18px;
    }

    .form-login {
        max-width: 650px !important;
    }

}

@media (min-width: 576px) and (max-width: 767.98px) {
    .logo {
        width: 65%;
        margin-bottom: 25px;
    }

    .panel-heading {
        font-size: 19px;
    }

    .tabs-switch {
        display: inline-flex;
        flex-direction: row;
    }

    .tab-button {
        width: auto;
        padding: 8px 20px;
        font-size: 14px;
    }

    .left-content {
        padding: 30px 15px;
    }

    .form-login {
        max-width: 450px;
    }

    .footer-buttons {
        flex-direction: column;
    }

    .footer-buttons .col-6 {
        width: 100%;
        margin-bottom: 10px;
    }

    .right-panel {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 890px) {
    .logo {
        width: 55%;
        margin-bottom: 30px;
    }

    .left-content {
        padding: 40px 30px;
    }

    .panel-heading {
        font-size: 20px;
    }

    .form-login {
        max-width: 100% !important;
    }

    .tabs-switch {
        display: inline-flex;
        flex-direction: row;
    }

    .footer-buttons {
        flex-direction: column;
    }

    .footer-buttons .col-6 {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (min-width: 891px) {
    .logo {
        width: 50%;
        margin-bottom: 30px;
    }

    .left-content {
        padding: 50px;
    }

    .right-panel {
        display: block;
    }

    .form-login {
        max-width: 550px;
    }
}

@media (min-width: 768px) and (max-width: 1079px) {
    .left-content {
        padding: 40px 30px !important;
        justify-content: center !important;
    }

    .logo {
        width: 60% !important;
        margin-bottom: 20px !important;
    }

    .form-login {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .panel-heading {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .textoBienvenida {
        font-size: 24px !important;
    }

    .textoBienvenida2 {
        font-size: 16px !important;
    }

    .tabs-switch {
        display: inline-flex;
        flex-direction: row;
    }

    .tab-button {
        padding: 10px 20px !important;
        font-size: 15px !important;
    }

    .form-group {
        margin-bottom: 16px !important;
    }

    .footer-buttons {
        margin-top: 30px !important;
    }

    .footer-buttons .btn {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .footer {
        margin-top: 40px !important;
    }
}

@media (min-width: 1080px) {
    .left-content {
        padding: 50px 80px !important;
    }

    .logo {
        width: 40% !important;
    }

    .form-login {
        max-width: 450px !important;
    }
}


.input-group-text {
    padding: 0;
}

.input-group .form-control:focus {
    box-shadow: none !important;
    border: 1px solid #ced4da !important;
}

.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group-text {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.input-group-text button {
    border-radius: 0 !important;
    box-shadow: none !important;
    /*padding: 0.55rem 0.75rem !important;*/
    border-color: transparent !important;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}