 * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: "Segoe UI", Arial, sans-serif;
            background: #f0f6fd;
            color: #24364b;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .login-container {
            display: grid;
            grid-template-columns: 0.9fr 1.1fr;
            width: 100%;
            max-width: 1000px;
            min-height: 570px;
            background: #fff;
            border: 1px solid #d9e6f4;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 45px rgba(29, 78, 130, .10);
        }

        .brand-panel {
            background: linear-gradient(145deg, #e7f3ff, #f8fbff);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px;
            text-align: center;
            border-right: 1px solid #edf2f8;
        }

        .brand-icon {
            width: 82px;
            height: 82px;
            display: grid;
            place-items: center;
            border-radius: 22px;
            background: #0d6efd;
            color: white;
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 22px;
            box-shadow: 0 10px 25px rgba(13, 110, 253, .23);
        }

        .brand-panel h1 {
            margin: 0;
            font-size: 34px;
            letter-spacing: 2px;
        }

        .brand-panel h2 {
            margin: 5px 0 18px;
            font-size: 14px;
            letter-spacing: 5px;
            color: #647c98;
        }

        .brand-panel p {
            color: #647c98;
            font-size: 14px;
        }

        .form-panel {
            padding: 60px 55px 35px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .form-panel h2 {
            font-size: 32px;
            margin: 0 0 10px;
        }

        .form-panel h2 span {
            color: #0d6efd;
        }

        .subtitle {
            color: #7c8da3;
            margin: 0 0 38px;
        }

        .form-group {
            margin-bottom: 23px;
        }

        label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 9px;
        }

        .input-wrapper {
            display: flex;
            align-items: center;
            border: 1px solid #ccd9e8;
            border-radius: 7px;
            padding: 0 14px;
            transition: border-color .2s, box-shadow .2s;
        }

        .input-wrapper:focus-within {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13, 110, 253, .10);
        }

        .input-wrapper input {
            width: 100%;
            min-width: 0;
            height: 48px;
            border: 0;
            outline: none;
            padding: 0 10px;
            font-size: 15px;
            background: transparent;
            color: #24364b;
        }

        .input-wrapper input::placeholder {
            color: #9aaabd;
        }

        .field-icon {
            color: #73869c;
            font-size: 18px;
        }

        .toggle-password {
            border: 0;
            background: transparent;
            color: #647c98;
            cursor: pointer;
            padding: 8px;
        }

        .options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            font-size: 13px;
            margin: 0 0 28px;
        }

        .remember {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .remember input {
            accent-color: #0d6efd;
        }

        a {
            color: #0d6efd;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        .btn-login {
            width: 100%;
            min-height: 49px;
            border: 0;
            border-radius: 7px;
            color: white;
            background: #0d6efd;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background .2s;
        }

        .btn-login:hover {
            background: #0b5ed7;
        }

        .footer {
            margin-top: 35px;
            padding-top: 20px;
            border-top: 1px solid #e8edf3;
            text-align: center;
            color: #8392a6;
            font-size: 12px;
        }

        @media (max-width: 700px) {
            body {
                padding: 14px;
            }

            .login-container {
                grid-template-columns: 1fr;
                max-width: 430px;
            }

            .brand-panel {
                padding: 28px 20px;
                border-right: 0;
                border-bottom: 1px solid #edf2f8;
            }

            .brand-icon {
                width: 58px;
                height: 58px;
                font-size: 34px;
                margin-bottom: 12px;
            }

            .brand-panel h1 {
                font-size: 27px;
            }

            .brand-panel h2 {
                margin-bottom: 5px;
            }

            .brand-panel p {
                margin-bottom: 0;
            }

            .form-panel {
                padding: 32px 24px;
            }

            .form-panel h2 {
                font-size: 27px;
            }

            .subtitle {
                margin-bottom: 28px;
            }
        }

        
/* Campos del formulario */
.form-group {
    margin-bottom: 22px;
}

.form-group > label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #ccd9e8;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #24364b;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
}

.form-group input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .10);
}

/* Campo de contraseña y botón Mostrar */
.password-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-wrapper input {
    flex: 1;
    min-width: 0;
}

.password-wrapper button {
    height: 48px;
    padding: 0 12px;
    border: 1px solid #ccd9e8;
    border-radius: 7px;
    background: #fff;
    color: #0d6efd;
    cursor: pointer;
}

.login-error {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}