body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f6f9;
    color: #2c3e50;
}

.login-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to right, #ffffff 47%, #2d3436 100%);
}


.login-left {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;


}

.login-left h1 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
}

.login-left p {
    max-width: 400px;
    color: #555;
}

.login-left img {
    width: 350px;
    max-width: 80%;
    margin-bottom: 15px;
}

.login-right {
    flex: 1;
    background-color: #2d3436;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: linear-gradient(to bottom right, #2d3436, #1e2425);
}

.login-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.login-box h3 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: #2d3436;
}

.form-group input {
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;

    color: #2c3e50;
}

.form-group input:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
}

.btn-login {
    background-color: #00bcd4;
    color: white;
    font-weight: bold;
    border: none;
    padding: 12px;
    border-radius: 30px;
    width: 100%;
    transition: background 0.3s;
}

.btn-login:hover {
    background-color: #0192a0;
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
}

.login-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #2d3436;
}

.alert-danger {
    font-size: 14px;
}

@media (max-width: 768px) {
    .login-mobile-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* ✅ centra verticalmente todo */
        background: #2d3436;
        height: 100vh;
        padding: 0 20px;
    }

    .login-container {
        flex-direction: column;
        align-items: center;
        background: transparent;
        height: auto;
        padding: 0;
    }

    .login-left {
        background: transparent;
        padding: 0;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .login-left img {
        max-width: 100px;
        margin: 0 auto 20px;
    }

    .login-left h1,
    .login-left p {
        display: none;
    }

    .login-right {
        background: transparent;
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .login-box {
        max-width: 360px;
        width: 100%;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .hidden-xs {
        display: none !important;
    }
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00bcd4;
    font-size: 16px;
}

.input-icon input.form-control {
    padding-left: 40px;
}

.input-password {
    position: relative;
}

.input-password .icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00bcd4;
    font-size: 16px;
    pointer-events: none;
}

.input-password .icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00bcd4;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
}

.input-password input.form-control {
    padding-left: 40px;
    padding-right: 40px;
}

.no-pointer {
    pointer-events: none;
}

/* Estilo del logo dentro de la caja en móvil */
.login-box-logo {
    max-width: 250px;
    margin: 0 auto 20px;
    display: block;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 15px;
    line-height: 1.4;
}

.brand-name {
    color: #00bcd4;
}

.welcome-description {
    font-size: 16px;
    color: #555;
    max-width: 420px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 22px;
        text-align: center;
    }

    .welcome-description {
        font-size: 15px;
        text-align: center;
        padding: 0 10px;
    }
}
