* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f4f7fc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.login-wrapper {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(11, 26, 51, 0.10);
    overflow: hidden;
    border: 1px solid #ebf0f8;
}

/* ===== LADO IZQUIERDO - BRANDING ===== */
.login-brand {
    background: #0b1a33;
    padding: 48px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    min-height: 480px;
}

.login-brand .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.4px;
    margin-bottom: 32px;
}

.login-brand .logo i {
    color: #5b9aff;
    font-size: 2.4rem;
}

.login-brand h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.login-brand p {
    color: #8da1c4;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
}

.login-brand .features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-brand .features span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd8ec;
    font-size: 0.9rem;
}

.login-brand .features i {
    color: #5b9aff;
    width: 20px;
    font-size: 1rem;
}

/* ===== LADO DERECHO - FORMULARIO ===== */
.login-form {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 480px;
    background: white;
}

.login-form h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0b1a33;
    margin-bottom: 6px;
}

.login-form .subtitle {
    color: #4f6f92;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #1d334f;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group label .required {
    color: #c73a3a;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    font-size: 0.95rem;
    background: #fbfdff;
    transition: 0.15s;
    color: #102a44;
}

.form-control:focus {
    outline: none;
    border-color: #2b6ed7;
    box-shadow: 0 0 0 3px rgba(43, 110, 215, 0.12);
    background: white;
}

.form-control::placeholder {
    color: #a2b7d0;
}

.form-control-icon {
    position: relative;
}

.form-control-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b97c7;
    font-size: 1rem;
}

.form-control-icon .form-control {
    padding-left: 44px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #2b4a6e;
    cursor: default;
}

.form-options label input[type="checkbox"] {
    accent-color: #2b6ed7;
    width: 16px;
    height: 16px;
    cursor: default;
}

.form-options a {
    color: #2b6ed7;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default;
}

.form-options a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: default;
    transition: 0.15s;
    background: #0b1a33;
    color: white;
}

.btn i {
    color: #7b9ed4;
}

.btn:hover {
    background: #1a2f4e;
}

.btn-outline {
    background: transparent;
    color: #2b5a8a;
    border: 1px solid #cbd8ec;
    width: auto;
    padding: 12px 24px;
}

.btn-outline:hover {
    background: #f4f9ff;
}

.btn-success {
    background: #1f7b4d;
    color: white;
}

.btn-success i {
    color: #a4d6b6;
}

.btn-success:hover {
    background: #16693e;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 12px;
}

/* ===== RECUPERAR CONTRASEÑA (modal inline) ===== */
.recovery-section {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef3fa;
}

.recovery-section.active {
    display: block;
}

.recovery-section .form-group {
    margin-bottom: 14px;
}

.recovery-section .btn {
    width: auto;
    padding: 12px 28px;
}

.recovery-section .btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
    }

    .login-brand {
        padding: 32px 28px;
        min-height: auto;
    }

    .login-brand h2 {
        font-size: 1.5rem;
    }

    .login-form {
        padding: 32px 28px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .login-brand .logo {
        font-size: 1.5rem;
    }

    .login-form h3 {
        font-size: 1.3rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .recovery-section .btn-group {
        flex-direction: column;
    }

    .recovery-section .btn-group .btn {
        width: 100%;
    }
}