:root {
    --primary-color: #0253ac;
    --secondary-color: #3949ab;
    --accent-color: #5c6bc0;
    --border-radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
}

/* ── Layout principal ── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Panel izquierdo (decorativo) ── */
.login-left {
    flex: 0 0 60%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 40%, var(--accent-color) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.login-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.login-left-content .brand-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: .9;
}

.login-left-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-left-content p {
    font-size: 1rem;
    opacity: .85;
    max-width: 340px;
}

.login-left-content .badge-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 25px;
}

.login-left-content .badge-pills span {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 500;
}

/* ── Panel derecho (formulario) ── */
.login-right {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px 30px;
}

.login-form-container {
    width: 100%;
    max-width: 380px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 180px;
}

.login-logo h5 {
    font-size: .95rem;
    color: #777;
    margin-top: 8px;
    font-weight: 400;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    text-align: center;
}

.login-subtitle {
    font-size: .88rem;
    color: #888;
    text-align: center;
    margin-bottom: 28px;
}

/* Inputs */
.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: var(--primary-color);
}

.form-control {
    border-left: none;
    font-size: .93rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

/* Botón principal */
.btn-login {
    background-color: var(--primary-color);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all .3s;
    width: 100%;
}

.btn-login:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 83, 172, .35);
    color: white;
}

.btn-login:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* Divider vertical (mismo que login.php referencia) */
.dividing-line {
    display: block;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    margin: 0 auto 25px;
}

/* Footer del formulario */
.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: .8rem;
    color: #aaa;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        flex: 0 0 100%;
        padding: 30px 20px;
    }
}