/* ===== Login: panel dividido ===== */

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.login-page {
    min-height: 100vh;
    display: flex;
}

/* Panel izquierdo: marca */
.login-panel-brand {
    flex: 1 1 46%;
    background: linear-gradient(135deg, #1c2f8f 0%, #6a3fd0 50%, #d6249f 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

.login-panel-brand::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, .18) 0%, rgba(230, 57, 70, 0) 70%);
    top: -160px;
    right: -160px;
}

.login-panel-brand::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 70%);
    bottom: -140px;
    left: -120px;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.login-logo {
    max-width: 230px;
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.25));
}

.login-brand-rule {
    border-color: rgba(255,255,255,.18);
    width: 60px;
    margin: 1.25rem 0;
}

.login-brand-desc {
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    font-size: 0.95rem;
}

.login-brand-footer {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Panel derecho: formulario */
.login-panel-form {
    flex: 1 1 54%;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-box {
    width: 100%;
    max-width: 380px;
}

.login-title {
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.login-form-box .form-label {
    font-weight: 500;
    color: #33394a;
    font-size: 0.9rem;
}

.login-form-box .form-control {
    border-radius: 10px;
    border: 1px solid #dde1e7;
}

.login-form-box .form-control:focus {
    border-color: #1d3557;
    box-shadow: 0 0 0 0.2rem rgba(29, 53, 87, .12);
}

.btn-brand {
    background: linear-gradient(115deg, #1c2f8f 0%, #6a3fd0 50%, #d6249f 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: filter .15s ease;
}

.btn-brand:hover, .btn-brand:focus {
    filter: brightness(1.08);
    color: #fff;
}

.login-footnote {
    text-align: center;
    color: #9aa1ac;
    font-size: 0.78rem;
    margin-top: 2rem;
    letter-spacing: .02em;
}

@media (max-width: 860px) {
    .login-page {
        flex-direction: column;
    }
    .login-panel-brand {
        flex: 0 0 auto;
        padding: 2.25rem;
    }
    .login-panel-form {
        flex: 1 1 auto;
    }
}
